fork download
  1. #include <stdio.h>
  2.  
  3. void table(int n){
  4. for(int i=n;i<=10*n;i=i+n){
  5. printf("%d",i);
  6. }
  7. return;
  8. }
  9.  
  10.  
  11. int main() {
  12. int n;
  13. printf("Enter the value of n: ");
  14. scanf("%d",&n);
  15.  
  16. table(n);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5288KB
stdin
5
stdout
Enter the value of n: 5101520253035404550