Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <stdio.h>
- int main()
- {
- unsigned int a;
- printf("\nNhap so nguyen duong: ");
- scanf("%u", &a);
- printf("\n%u", a);
- switch (a % 2)
- {
- case 0:
- printf("\nSo vua nhap la so chan");
- break;
- case 1:
- printf("\nSo vua nhap la so le");
- break;
- default:
- printf("\nBan phai nhap so nguyen duong");
- }
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement