Cant find where the mistake is :/ . It doesnt print C :/ | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Cant find where the mistake is :/ . It doesnt print C :/

package javaapplication1 public class JavaApplication1 { static int A = 1 ; static int C ; public static void main(String[] args) { while (A <=100) { System.out.println("A = " +A++); C = A System.out.println("C= " +C } } }

2nd Feb 2017, 11:39 AM
Agamemnon Kyriazis
Agamemnon Kyriazis - avatar
2 ответов
+ 1
You're missing a closing ); at the end of the print statement And a missing ; at the end of C=A
2nd Feb 2017, 11:50 AM
Vincent
0
Thanks a lot :)
2nd Feb 2017, 12:00 PM
Agamemnon Kyriazis
Agamemnon Kyriazis - avatar