-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathif.cpp
49 lines (41 loc) · 773 Bytes
/
if.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <iostream>
using namespace std;
int main()
{
// int marks;
// cout<<"Enter your marks: ";
// cin>>marks;
//
// if(marks >= 70)
// {//body of the if statement start
// cout<<"Congratulations!\n";
// cout<<"You got a scholarship."<<endl;
// }//end of if statment body
// else
// {
// cout<<"Sorry Try again\n";
// }
//float gpa;
//cout<<"Enter your gpa for checking being eligible!: ";
//cin>>gpa;
//
//if(gpa >= 3.0)
//{
// cout<<"Congratulations!!"<<endl;
// cout<<"You are eligible";
//}
//
//else
//{
// cout<<"We are sorry!"<<endl;
// cout<<"You may try again!!";
//}
int s;
cout<<"enter scores ";
cin>>s;
if(s<50)
{cout<<"your failed";}
//cout<<"you R passeD";
else cout<<"u r passed";
return 0;
}