- 3

cant figure out the issue

public class Program { public static void main(String[] args) { int x= 2; while (x <= 3) { Cout <<" x is" << x; } } }

27th Sep 2021, 4:29 AM
Adebisi Olawale
Adebisi Olawale - avatar
5 ответов
+ 3
Don't capitalize cout. The while loop is infinite because the test condition never becomes false. Inside the loop you need to change the value of x so that x becomes larger than 3. Please use correct tags. This is in C++, not Java and Python3.
27th Sep 2021, 4:41 AM
Brian
Brian - avatar
+ 3
Tags suggesting java , Python Code :-C++ 😂
27th Sep 2021, 7:09 AM
Atul [Inactive]
+ 2
I hope that Bjarne Stroustrop & James Gosling see this code one day 👀😂
27th Sep 2021, 10:08 PM
Maher Al Dayekh
Maher Al Dayekh - avatar
+ 2
Maher Al Dayekh they will be very proud of him😂
28th Sep 2021, 2:24 AM
Rishi
Rishi - avatar