dipika20620407
dipika20620407 dipika20620407
  • 09-03-2021
  • Computers and Technology
contestada



WAP to read number(s) from keyboard until a zero number is keyed in. And print the sum of entered numbers.​

Respuesta :

broadheadnick78
broadheadnick78 broadheadnick78
  • 09-03-2021

Answer:

Worship And Pray -LIVE LAUGH WAP

Answer Link
Аноним Аноним
  • 09-03-2021

Answer and Explanation:

in Java:

import java.util.Scanner;

public class NumberReader

{

 public static void main(String[]args)

 {

     Scanner in = new Scanner(System.in);

     

     int keyNum = 10;

      while (keyNum != 0)

      {      

          keyNum = in.nextInt();

          sum += keyNum

      }

      System.out.println(sum);

 }

}

Answer Link

Otras preguntas

The primary energy source of the early Industrial Revolution was...
In the past you paid $800 per month to rent your apartment you now paid $900 per month what is the percent increase in your rent.
Which is the DNA tehory? How do we know the DNA contains genetic information?
help me outttttttttttt
What is the midpoint of line segment AB?
AM is a median in △ABC (M∈ BC ). A line drawn through point M intersects AB at its midpoint P. Find areas of △APC and △PMC, if Area of APM=35m2.
104 is the same as d divided by 92 write equation (IXL)
In 1897, attending Harvard as a non-degree student. is a fragment?
HEEEEEEELP PLEAAAASE...
help me outttttttttttt