+ 1
If else statement in c++
Anybody know how to do if else statement in c++ https://code.sololearn.com/cRcV83j5JTrz/?ref=app
3 Antworten
0
in C++ structure of if else statement is that
if (condition)
True Statement
else
False Statement
* for example condition is that student having 40 marks, true statement pass otherwise false statement "fail".
Program:
int marks;
cout<<"Enter marks of Students";
cin>>marks;
if(marks>=40)
{
cout<<"Pass";
}
else
{
cout<<"Fail";
}
getch();
0
thanks bro
0
if else statement program is than easier for compiler to check the answer . if else statement take less time to get the answer