package hlo;
public class While {
public static void main(String[]args) {
int police=0;
int thief=40;
while(police<40) {
police=police+5;
thief=thief+2;
}
System.out.println(police);
}
}
output:
40
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
yaswanth krishna | Sciencx (2025-02-24T19:05:53+00:00) police thief while using “logical thinking”. Retrieved from https://www.scien.cx/2025/02/24/police-thief-while-using-logical-thinking/
" » police thief while using “logical thinking”." yaswanth krishna | Sciencx - Monday February 24, 2025, https://www.scien.cx/2025/02/24/police-thief-while-using-logical-thinking/
HARVARDyaswanth krishna | Sciencx Monday February 24, 2025 » police thief while using “logical thinking”., viewed ,<https://www.scien.cx/2025/02/24/police-thief-while-using-logical-thinking/>
VANCOUVERyaswanth krishna | Sciencx - » police thief while using “logical thinking”. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/02/24/police-thief-while-using-logical-thinking/
CHICAGO" » police thief while using “logical thinking”." yaswanth krishna | Sciencx - Accessed . https://www.scien.cx/2025/02/24/police-thief-while-using-logical-thinking/
IEEE" » police thief while using “logical thinking”." yaswanth krishna | Sciencx [Online]. Available: https://www.scien.cx/2025/02/24/police-thief-while-using-logical-thinking/. [Accessed: ]
rf:citation » police thief while using “logical thinking” | yaswanth krishna | Sciencx | https://www.scien.cx/2025/02/24/police-thief-while-using-logical-thinking/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.