Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a;
  5. printf("Enter the number: ");
  6. scanf("%d",&a);
  7. if (a%5==0 && a%10==0)
  8. {
  9.     printf("The number is divisible by 5 and 10\n");
  10. }
  11. else
  12. {
  13.     printf("The number is not divisible by 5 and 10\n");
  14. }
  15. main();
  16. return 0;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement