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

which story is about as criminal who gets caught by a clever trick
What is culture to you
With more than ____ predefined color schemes, Word provides a simple way to select colors that work well together. (Points : 2) 15 20 30 40
What two numbers added together give you 99.7Percent ?
Solve by completing the square or by finding vertex form first: 1/2(y + 4) = (x - 7)^2
solve for v in c=kpv
The fact that companies can store and access emails sent or received on their equipment limits which of your rights? a. freedom of information b. best practic
what sense did edgar allan poe believe the "unity of effect" in a poem should arouse in the reader
how old is Washington DC
when 4 times the number x is added to 12, the result is 8. what number results when 2 times x is added to 7?