Advertisement
KevinPerez

DOTCPP

Nov 22nd, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. void(Cantidad de numeros)
  2. {
  3.  
  4.     int cifras = 0;
  5.     cifras = (log(10)((float)cifras)+1);
  6. }
  7. in main()
  8. {
  9.   freopen("in.txt","rt",stdin);
  10.   freopen("out.txt","wt",stdout);
  11.   //MIENTRAS AYAN DATOS POR LEER while(scanf(%d))
  12.   int numero;
  13.   while(scanf("%d",&numero)&&numero!=0)
  14.   {
  15.     printf("%d + uno = %d\n",numero,numero+1);
  16.   }
  17.   return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement