Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <conio.h>
- void main ()
- {
- int x, y;
- L: cout << "\n Enter a number: " ;
- cin >> x;
- y=x%2;
- if (y==0)
- cout << " The number is even\n" << endl;
- else
- cout << " The number is odd\n" << endl;
- goto L;
- getch ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement