#include<iostream>
using namespace std;
int main()
{
//even
for(int m=1; m<100; m++)
{
if(m%2==0)
{
cout<<m<<endl;
}
}
}
#include<iostream>
using namespace std;
int main()
{
//odd
for(int m=1; m<100; m++)
{
if(m%2!==0)
{
cout<<m<<endl;
}
}
}
#include<iostream>
using namespace std;
int main()
{
int grade;
if(grade>'B')
{
cout<<"You Wiill got greater than 60% marks \n";
}
else if(grade<'C')
{
cout<<"You Wiill got leseer than 60% marks \n";
}
else if(grade<'D')
{
cout<<"You Wiill got lesser than 50% marks \n";
}
}
#include<iostream>
using namespace std;
int main()
{
int grade;
cout<<"GRADE";
cin>>grade;
if(grade>'A')
{
cout<<"You Got 80% Above Marks\n";
}
else if(grade<'B ')
{
cout<<"You Got Less Than 80% Marks\n";
}
else
{
cout<<"False Statment";
}
}
Comments
Post a Comment