![]() I know that it can't be too complicated, I am probably just overthinking it.īut I have figured out to get the largest number to display I need to create a loop to check and see if the entered number is larger than the previous number being entered, but I don't know how to work that into my current program or even how to accomplish that. INPUT: Number (and in the input statement it again says "Pick a Number") IF Statement: Number = -1> if true it goes to OUTPUT: "The largest Number was "Īnd if it is false to create a loop I put another input statement While Statement: TRUE>true (I have nothing routing into the false)įrom the true statement it goes into a IF statement Input: Number (and in the input statement I have it saying "Pick a Number") The problem that I am having is figuring out how to make the visual logic program give me the largest value at the end of the loop. So I think I have the first part figured out, ending when you input -1. At that time the program should display the largest value in the input list. Until the user enters the value –1 as a sentinel. Write a program that reads in a list of positive integers from the user ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |