fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the number: ");
  6. scanf("%d",&n);
  7. for(int i=n;i<=(10*n);i=i+n){
  8. printf("%d\n",i);
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5320KB
stdin
5
stdout
Enter the number: 5
10
15
20
25
30
35
40
45
50