bosschikaytippin bosschikaytippin
  • 28-05-2017
  • Computers and Technology
contestada

Write code that prompts the user to enter a positive nonzero number and validates the input

Respuesta :

AstroGalacticKP
AstroGalacticKP AstroGalacticKP
  • 28-05-2017
Hello, the following should work. If it doesnt, let me know.


Module Main()

Declare Integer n

Display "Please enter a positive non zero positive number"

Input n

While n < = 0

Display " Invalid Input, Please enter a non zero positive number"

Input n

End While

END

Hope this helps.
Answer Link

Otras preguntas

In a four-stroke engine, the time period when both valves are slightly open is called valve a. seating. b. lift. c. duration. d. overlap.
During the Cold War, the United States supported anti-communist dictators who committed human rights abuses and opposed democratic freedoms. What does this indi
Heladio has 52 marbles . divide them into two groups so that for every 6 marbles in the first group there are 7 marbles in the second group.
Did the spanish have weapons the aztecs have never seen befor true or false
the moral framework that highlights Universal moral truths and emphasizes doing one's duty is referred to as
Naimal averages 80km/h driving her car. A) Write and algebraic expression for the distance she drives in h hours. Would it be 80 * 1h = 80km she would drive 80
What do you call a cow that never gives milk?
Why was the Presidential Committee on Civil Rights needed?
Five less than twicea number is7
Tim has an encyclopedia in 5 volumes: A–C, D–F, G–J, K–N, and O–Z. Other than alphabetically (ascending or descending), how many ways can these volumes be arran