C++ alapok - 4. rész Dönteni kell

 A programunk akkor válik igazi programmá, ha saját döntést hozz. Hogyan kell ezt megvalósítani c++ esetén? IF....



Forráskód:

#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
        int zsomi=6;
        
        if(zsomi<6){
            cout<< "Zsomi kicsi!!!";
            zsomi=8;
        }else{
            cout<<"Zsomi nagy!!!"
        }
    
        if(zsomi==8){
            cout<<"Pontosan Nyolc!!!"
        }

return 0;
}




Videó: