fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int n,i;
  6. printf("input n:");
  7. scanf("%d",&n);
  8. for(i=1;i<=n;i++)
  9. {
  10. printf("2* %d=%d",i,2*i);
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5284KB
stdin
10
stdout
input n:2* 1=22* 2=42* 3=62* 4=82* 5=102* 6=122* 7=142* 8=162* 9=182* 10=20