in Education by
While (true) System.out.print(*); Change to for loop Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
int n=1; for(int i=0;i<_n;i++) { if(n%2==0 sopln(*); sopln(true); else sopln(false); } hope it helps u

Related questions

0 votes
    convert the following into For loop; while(true) System.out.print(‘*’); (in java ) PLEASE ANSWER FAST… WILL MARK BRAINLIEST** Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Java Output and Reason System.out.print(“Sum = ”+ ‘B’+ ‘2’); Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    EJ Write T for true and F for false. 71. Input devices are used to store the data. 2. Calculations are done ... is a system software. Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    write a program to input a number and print table of the number using while loop Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Write the following in while(): For (i=1;i =100;i++){Print( %d \ ,i);} (Will no one be able to solve ... as i am doing an exam now) Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    WHILE…LOOP is used when we know the number of iterations of a loop. True False Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    which application software in the computer system did you find useful while studying science and how? Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    can anyone please help me out for this question Write a program to create two threads, so one thread will print ... between 11 to 20. Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    can anyone please help me out for this question Write a program to create two threads, so one thread will print ... between 11 to 20. Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    int n=10;int res=(n–+10>–n×5)?++n:n++ System.Out.println(res+”,”+n); what is the output Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    State the type of errors if any in the following statements: (i) switch ( 2 ); (ii) System.out.println(670/0); pls answer Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
...