+ 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
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
}
}
+ 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. ✌️
+ 2
I'm not good at explaining
https://code.sololearn.com/c8IFgdE23WG9/?ref=app
Just compare and contrast with yours
+ 2
+ 1
Thanks guys
+ 1
dρlυѕρlυѕ I am unable to understand error reports