Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ## numero.c [c++]
  2. #include <stdio.h>
  3.  
  4. int main(int argc, char **argv) {
  5.     if (argc < 2) {
  6.         printf("Te falta un argumento\n");
  7.         return 1;
  8.     }
  9.  
  10.     int hasta;
  11.     int i;
  12.     scanf("%i", &hasta);
  13.     for(int i = 0; i <= hasta; i++) {
  14.         printf("%i", i);
  15.     }
  16.    
  17. }