5-21 C# Finding Largest Value (using Loops)
ฝัง
- เผยแพร่เมื่อ 19 ก.ย. 2024
- C# How To Program
Homework 5.21: Find the Largest Number (using loops)
The process of finding the maximum value (i.e., the largest of a group of values) is used frequently in computer applications. For example, an app that determines the winner of a sales contest would input the number of units sold by each salesperson. The salesperson who sells the most units wins the contest. Write pseudocode, then a C# app that inputs a series of 10 integers, then determines and displays the largest integer. Your app should use at least the following three variables:
a) counter: A counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed).
b) number: The integer most recently input by the user.
c) largest: The largest number found so far.
This is calm...simple and straight..
7:26, "get away, cat!" LOL!!!
thank you a lot!!!! :)it really helps me , i had a homework to find the mode and it really helps ! :)
Well done Mr, this was real helpful! i was supposed to find minimal and a maximal
Thank you from 7 years ago.
Very helpful, thank you!
Thanks man. Very Helpful! May god Bless you thanks so much. Keep up the good work :D
Man!!! This saved my life. Thank you so much. One quick question though... when I put the counter in there, it kept giving me an error and suggested that I remove the counter part ( above the for statement). So when it removed it, it worked. How is that possible? I thought the counter was needed in the section that defines the int counter= 0 ; int number =0; int largest = 0; ...
Thank you. Big Help 😁
Very helpful thank you .
Thank you!
very helpful
How would I find the largest number in an array?