Write a C++ Program to check if number is Greater than 15.


SUBMITTED BY: Nrupeshsinh

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

FORMAT: Text only

SIZE: 244 Bytes

HITS: 818

  1. # include<iostream.h>
  2. # include<conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. int n;
  7. cout<<"Enter a Number :";
  8. cin>>n;
  9. if(n>15)
  10. {
  11. cout<<"Number is Greater than 15";
  12. }
  13. else
  14. {
  15. cout<<"Number is Not Greater than 15";
  16. }
  17. getch();
  18. }

comments powered by Disqus