Using VC++ to print the multiplication table
- 2020-04-02 02:57:01
- OfStack
About the multiplication table, here is not much nonsense, we all understand, the following said with vc++ to achieve the train of thought code:
Times tables. CPP
#include<stdio.h>
int main ()
{ int i,j;
for(i=1;i<=9;i++)
{ for(j=1;j<=i;j++)
printf("%d ¡Á %d =%2d ",j,i,i*j);
putchar(' n');
}
getchar(); getchar();
return 0;
}
Multiplication table 2. CPP
#include<stdio.h>
int main ()
{ int i,j,k=0,n;
for(i=1;i<=9;i++)
{
k++;
for(j=k;j<=9;j++)
printf("%d ¡Á %d =%2d ",i,j,i*j);
putchar(' n');
}
return 0;
}
The above two paragraphs are all the code Shared in this article. They are very simple and easy to understand. I hope you enjoy them