Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (){
  4. int x, i;
  5. while((scanf("%d", &x)!=1)||(x<0)){
  6. printf("Incorretto. Inserisci un intero positivo.\n");
  7. while (getchar()!= '\n');
  8. }
  9. for (i=0;i<10;i++)
  10. {
  11. printf("%d\n",x*(i+1));
  12. }
  13.  
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement