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 5272KB
stdin
10
stdout
input n:2*1=2 2*2=4 2*3=6 2*4=8 2*5=10 2*6=12 2*7=14 2*8=16 2*9=18 2*10=20