+ 1

If else statement in c++

Anybody know how to do if else statement in c++ https://code.sololearn.com/cRcV83j5JTrz/?ref=app

16th Oct 2018, 2:30 AM
Thanesh
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();
16th Oct 2018, 4:56 AM
Muhammad Aamir
Muhammad Aamir  - avatar
0
thanks bro
18th Oct 2018, 5:23 AM
Thanesh
0
if else statement program is than easier for compiler to check the answer . if else statement take less time to get the answer
29th Oct 2018, 4:59 PM
Oviya arumugam
Oviya arumugam - avatar