IvoSilva

[PROG1] Ficha 3 | Exercício 3

Nov 20th, 2011
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.   int num ;
  5.   printf ("Insira um número : ") ;
  6.   scanf ("%d" , &num) ;
  7.   if (num / 100 == num % 10) printf ("É capicua !\n") ;
  8.   else printf ("Não é capicua !\n");
  9.   return 0 ;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment