Write a C++ Program using concept of If Else.


SUBMITTED BY: Nrupeshsinh

DATE: June 22, 2016, 12:05 p.m.

UPDATED: June 22, 2016, 2:53 p.m.

FORMAT: Text only

SIZE: 284 Bytes

HITS: 809

  1. # include<iostream.h>
  2. # include<conio.h>
  3. void main()
  4. {
  5. int n;
  6. clrscr();
  7. cout<<"Enter Any No:-";
  8. cin>>n;
  9. if(n%2==0)
  10. {
  11. cout<<"No is Even";
  12. }
  13. else
  14. {
  15. cout<<"No is Odd";
  16. }
  17. getch();
  18. }

comments powered by Disqus