Home > Net >  Yang multiplication table
Yang multiplication table

Time:10-05

For (int I=1; I <=9; I++)
{
For (I nt j=1; J <=I; J++)
{
Console. Write (" {0} x={1} {2} \ t ", I, j, I * j ");
}
Console. Writeline ();
}

CodePudding user response:

Whether should add a console behind. Readline ()?

CodePudding user response:

reference 1st floor HyoJung response:
whether should add a console. Behind the readline ()?

Writeline (output a newline)
Newline (input)

CodePudding user response:

Class Program {
The static void Main (string [] args) {
for (int i=1; i <=9; I++) {
For (int j=1; J & lt;=I; J++) {
Console. Write (" {0} {1}={2} \ t ", j, I, I * j);
}
Console. WriteLine ();
}
The Console. ReadLine ();
}
}

CodePudding user response:

Oh
  •  Tags:  
  • C#
  • Related