WHATS WRONG
WHATS WRONG?!!
Resolved
Comments (6)
- Popular
- New
- Old
You must be signed in to leave a comment
M Harsha Vinay
28 May 2019, 11:32
package com.codegym.task.task03.task0314;
/*
Multiplication table
*/
public class Solution {
public static void main(String[] args) {
Number(1);
Number(2);
Number(3);
Number(4);
Number(5);
Number(6);
Number(7);
Number(8);
Number(9);
Number(10);
//write your code here
}
public static void Number(int a)
{
for(int i=1;i<=10;i++)
{
int b;
b=a*i;
System.out.print(" "+b);
}
System.out.println();
}
}
try to use some method form then we get rid of programming.......try to avoid printing statements dudes
0
parthasarathy t s
27 May 2019, 07:20
System.out.println(("1 2 3 4 5 6 7 8 9 10"));
System.out.println(("2 4 6 8 10 12 14 16 18 20"));
System.out.println(("3 6 9 12 15 18 21 24 27 30"));
System.out.println(("4 8 12 16 20 24 28 32 36 40)");
System.out.println(("5 10 15 20 25 30 35 40 45 50"));
System.out.println(("6 12 18 24 30 36 42 48 54 60"));
System.out.println(("7 14 21 28 35 42 49 56 63 70"));
System.out.println(("8 16 24 32 40 48 56 64 72 80"));
System.out.println(("9 18 27 36 45 54 63 72 81 90"));
System.out.println(("10 20 30 40 50 60 70 80 90 100"));
0
Deborishi Ganguly
17 May 2019, 17:35
E not understand wee this not worker for my:
public class Solution {
public static void main(String[] args) {
//write your code here
int i = 1;
while (i <= 10)
{
for(int j = 1; j <= 10; j++)
System.out.print(j*i +" ");i++;
System.out.println();
}
}
}
+2
Raju Risa
25 May 2019, 13:23
public class Solution
{
public static void main(String[] args)
{
int i = 1;
while (i <= 10)
{
for(int j = 1; j <= 10; j++)
{
System.out.print(j*i +" ");
}
System.out.println();
i++;
}
}
}
0
rey
23 April 2019, 08:10
public class Solution {
public static void main(String[] args) {
System.out.println((1 2 3 4 5 6 7 8 9 10));
System.out.println((2 4 6 8 10 12 14 16 18 20));
System.out.println((3 6 9 12 15 18 21 24 27 30));
System.out.println((4 8 12 16 20 24 28 32 36 40));
System.out.println((5 10 15 20 25 30 35 40 45 50));
System.out.println((6 12 18 24 30 36 42 48 54 60));
System.out.println((7 14 21 28 35 42 49 56 63 70));
System.out.println((8 16 24 32 40 48 56 64 72 80));
System.out.println((9 18 27 36 45 54 63 72 81 90));
System.out.println((10 20 30 40 50 60 70 80 90 100));
}
}
0
ARIJIT MONDAL
23 April 2019, 09:17
System.out.println(1+" "+2+ " "+3+" "+4+" "+5+" "+6+" "+7+" "+8+" "+9+" "+10);
0