Txerrinko

Labores de cada argumento

Jul 26th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.70 KB | None | 0 0
  1. //incluir liberías de codigo que no tiene tu programa
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <math.h>
  5. #include <string.h>
  6.  
  7. //funcion principal
  8.  
  9. /*
  10. */
  11.  
  12. int main(int argc, char *argv[]) //prototipo de la funcion
  13. //cuerpo
  14. {
  15.    
  16.    printf("\n\n\tVamos a ejecutar un programa...\n\n");
  17.    
  18.    printf("El numero de argumentos es:   %d\n\n", argc );
  19.    
  20.    printf("Los argumentos son : %s\n\n", argv[0] );
  21.  
  22.   //Declaracion de variables
  23.   ///int /long
  24.   //float / double
  25.   //char /byte
  26.    double numero;
  27.  
  28.  
  29.  
  30.  
  31.   printf("teclea un numero: \n");
  32.  
  33.   scanf("%lf",&numero);
  34.  
  35.   printf("El numero tecleado es : %lf\n\n", numero );
  36.  
  37.   system("PAUSE"); 
  38.   return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment