+ 1

CAN ANYONE TELL ME what mistakes I have done in this codes , I don't know why it's not showing output

https://code.sololearn.com/csi34GXe33DQ/?ref=app https://code.sololearn.com/cm5LW9uU6P5r/?ref=app

14th Mar 2019, 2:16 AM
Bikki Singh
Bikki Singh - avatar
6 Respuestas
+ 21
//1) I will advice you to go through lesson again for syntax public class Program{ public static void main(String[] args) { int x = 1; while (x<=7){ System.out.println("Awesome"); x++; } } } //2)You should keep the print statement in main() menthod(take care of brackets), String value should be in " "(double quotes), syntax of print statement should be corrected. public class Program{ public static void main(String[] args) { String name="Bikki Singh"; int age= 16; double height= 169.75; System.out.println("My Name is "+name); //here for giving space before printing variable name, you should give it like : "My Name Is _space here_" +name } }
14th Mar 2019, 3:11 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 7
1. public class Program { public static void main(String[] args) { String name= "Bikki Singh"; int age= 16; double height= 169.75; System.out.println("My Name is " + name); } } 2. while (x <= 7){} You have a couple of syntax errors. Read the error report, it can help you fix it. ✌️
14th Mar 2019, 2:29 AM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 2
I'm not good at explaining https://code.sololearn.com/c8IFgdE23WG9/?ref=app Just compare and contrast with yours
14th Mar 2019, 2:48 AM
Dlite
Dlite - avatar
+ 2
Oh now I got Gaurav Agrawal , dρlυѕρlυѕ Dlite . Thanks guys
16th Mar 2019, 4:46 AM
Bikki Singh
Bikki Singh - avatar
+ 1
Thanks guys
16th Mar 2019, 4:38 AM
Bikki Singh
Bikki Singh - avatar
+ 1
dρlυѕρlυѕ I am unable to understand error reports
16th Mar 2019, 4:39 AM
Bikki Singh
Bikki Singh - avatar