Advertisement
Igor2909

es20

Dec 27th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. main()
  5. {
  6.     int cont = 0;
  7.     int N = 1;
  8.     int temp, guess;
  9.     printf("Quanti numeri vuoi visualizare?: ");
  10.     scanf("%d", &guess);
  11.     while(cont<guess)
  12.     {
  13.         temp = N * 2;
  14.         printf("%d\n" ,temp);
  15.         cont ++;
  16.         N++;
  17.        
  18.     }
  19.     system("PAUSE");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement