Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (){
- int x, i;
- while((scanf("%d", &x)!=1)||(x<0)){
- printf("Incorretto. Inserisci un intero positivo.\n");
- while (getchar()!= '\n');
- }
- for (i=0;i<10;i++)
- {
- printf("%d\n",x*(i+1));
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement