Advertisement
Guest User

java code

a guest
Jun 23rd, 2018
961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. write the pseudo code for the logic that takes a number form the user, if the number is less than or = to 0, output the statement: "Invalid Number Input" + <the number that was entered>. Otherwise, display the sum of every number from 1 through the entered numbers. Example, if the user enters 3, you output "The sums of 3 is 6" ( 1 + 2 + 3 = 6).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement