Txerrinko

Tipo de numero

Jul 26th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.   int  numero      ;
  7.  
  8.   printf("Introduce un numero \n");
  9.   scanf("%d",&numero);
  10.  
  11.  
  12.   if ( numero == 0 )
  13.     {
  14.       printf("El número  es igual a cero \n");
  15.       }
  16.   else if ( numero < 0 )
  17.      {
  18.        printf("El numero es negativo \n");
  19.        }
  20.   else if  ( numero > 0)
  21.         {
  22.            printf("El numero es positivo \n");
  23.            }
  24.        
  25.  
  26.  
  27.  
  28.  
  29.   system("PAUSE"); 
  30.   return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment