Home > Back-end >  God help me/C output 9 x 9 multiplication tables
God help me/C output 9 x 9 multiplication tables

Time:10-04

Click the format output

CodePudding user response:

Basic subject yourself to write

To learn, be about to write their own

There is no significance

CodePudding user response:

Fun
reference 1 floor response:
basic subject yourself to write

To learn, be about to write their own

Otherwise no sense

I finally cannot output the

CodePudding user response:

Int main ()
{
for(int i=1; i<10; I++) {
For (int j=1; j<=I; J++) {
Printf (" % 2 d ", I * j);
}
printf("\n");
}
return 0;
}

CodePudding user response:

Wrong again
#include

Int main ()
{
For (int m=0; M<10; M++) {
If (m==0) {
Printf (" * ");
}
The else {
Printf (" % 3 d ", m);
}
}
printf("\n");
for(int i=1; i<10; I++) {
Printf (" % 2 d ", I);
For (int j=1; j<=I; J++) {
Printf (" % 2 d ", I * j);
}
printf("\n");
}
return 0;
}

CodePudding user response:

refer to the second floor weixin_46538912 response:
Quote: refer to 1st floor fun response:
basic subject yourself to write

To learn, be about to write their own

Otherwise no sense

I finally cannot output the

What can output like what post code is good, as long as you write

CodePudding user response:

Void main (void)
{
Const char * PSTR="* 123456789";
For (int I=1; I & lt; 10; I++)
{
Printf (" % \ t "c, PSTR [I]);
}
Printf (" \ r \ n ");
For (int I=1; I & lt; 10; I++)
{
Printf (" % d \ t ", I);
For (int j=1; J & lt;=I; J++)
{

Printf (" % d \ t ", j * I);
}
Printf (" \ r \ n ");
}
system("pause");
}
  • Related