nikolas_serafini

Lista 2 - Exercício 5

May 24th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     float num,altnum;
  7.  
  8.     printf("Entre com dois numeros :\n"); scanf("%f %f",&num,&altnum);
  9.  
  10.     if (num == altnum)
  11.     {
  12.         printf("Os dois numeros sao identicos!\n");
  13.         return 0;
  14.     }
  15.     else
  16.     {
  17.         printf("Os numeros sao diferentes!\n");
  18.         return 0;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment