Monday, 16 January 2012

Program Of IF Condition In C++


#include<iostream.h>
#include<conio.h>
 main()
 {
 clrscr();
 int marks;
 cout<<"enter marks=";
 cin>>marks;
 if(marks>=40)
 {
 cout<<"\n pass";
 }
 else{
 cout<<"\n fail";
 }
 getch();
 }

No comments:

Post a Comment