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

Wich of following is(are) the solution(s) to |x+3| = 12 Answer: x=9
Find the GCF of 12x^2y and 27xy^3z
RACTICL n set 1. How much interest is earned in 9 months on a deposit of $7000 at 8 percent simple interest?
Write down and simplify the following algebraic expressions. The products of −5 and x+2 is added to −6x−1.
Line AB contains points A (−6, 3) and B (2, −5). Line AB has a slope that is
easch cube inside the rectangle prism has a edge length of 3/4 inch what is the volume of the rectangle prism
What is the overall effect of Earth's global atmospheric circulation? A. It moves heat from the equator toward the poles. B. It creates mountain, sea, land,
How much heat is released when 15.0 g of water vapor is condensed and then cooled from 100.0 C to -32.0 C? Show work please ❤️
What’s the vertex of this problem
Please help for exam review Find 165% of 80