= 0; x- =1) {if (x= = 0)System out print ("the loop will quit ");break; }System.out print (x +" ");}System.out.println("********System out printin("program using loop statment");}}2. a) Write...


1. Write the output from the below given program .<br>class Number {<br>public static void main(String args[ ]) {<br>for(int x=10; x>= 0; x- =1) {<br>if (x= = 0)<br>System out print (

Extracted text: 1. Write the output from the below given program . class Number { public static void main(String args[ ]) { for(int x=10; x>= 0; x- =1) { if (x= = 0) System out print ("the loop will quit "); break; } System.out print (x +" "); } System.out.println("******** System out printin("program using loop statment"); }} 2. a) Write a Java program to print the odd numbers between 1 to 50 using while loop statement. b) Do the same using for statement. 3. a) Declare an double array with 7 elements size and assign the values: 2, 4, 6, 8. b) Display the second and fourth element from an array. 4. Create a method named sum to return the summation of two numbers.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here