Advertisement
FAMDS

4

Nov 15th, 2022
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int
  4. main ()
  5. {
  6. //4. Fazer um programa para ler um nC:mero do usuC!rio e determinar se este nC:mero C) par ou nC#o par.
  7.  
  8. int n;
  9.  
  10. printf ("Informe o seu numero .....:");
  11. scanf ("%d", &n);
  12.  
  13. if (n % 2 == 0)
  14. {
  15. printf ("Par");
  16.  
  17. }
  18. else
  19. {
  20. printf ("Impar");
  21. }
  22.  
  23. return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement