0
Calculating acceleration Java??? Doesnt work
public class main { public static void main(String[] args) { int s=9; int t=3; int a; int v; if(s>0) v=s/t a=v/t; System.out.print(a); } }
3 ответов
+ 1
Angel Halili For multiple line of code in if or else statement you should use curly braces {}. For example:
if(10 > 0) {
System.out.print("Angel ");
System.out.println("Halili");
} else {
System.out.print("AJ ");
System.out.println("Anant");
}
0
Thanks.