police thief while using “logical thinking”

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(polic…

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
APA

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/

MLA
" » 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/
HARVARD
yaswanth 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/>
VANCOUVER
yaswanth 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.

You must be logged in to translate posts. Please log in or register.