Write a C++ Program of example of Simple If Statement.


SUBMITTED BY: Nrupeshsinh

DATE: June 23, 2016, 10:15 a.m.

FORMAT: Text only

SIZE: 191 Bytes

HITS: 693

  1. # include<iostream.h>
  2. # include<conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. int n;
  7. cout<<"Enter Any Number :";
  8. cin>>n;
  9. if(n>10)
  10. {
  11. cout<<"Number is greater than 10";
  12. }
  13. ` getch();
  14. }

comments powered by Disqus