Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Enter one number from user and check number is odd or even.
- #include<stdio.h>
- #include<conio.h>
- int main()
- {
- int no1;
- printf("\nEnter any no=");
- scanf("%d",&no1);
- if(no1%2==0)
- {
- printf("%d is even number",no1);
- }
- else
- {
- printf("%d is odd number",no1);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment