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

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.28 KB  |  hits: 9  |  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");
  7.         return 1;
  8.     }
  9.  
  10.     int hasta = 0;
  11.     int scanf("%i", hasta);
  12.     for(int i = 0; i <= hasta; i++) {
  13.         printf(i);
  14.     }
  15.    
  16. }