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.

ความคิดเห็น • 13

  • @tonydrizzle6448
    @tonydrizzle6448 7 ปีที่แล้ว +2

    This is calm...simple and straight..

  • @l.p.9568
    @l.p.9568 4 ปีที่แล้ว +3

    7:26, "get away, cat!" LOL!!!

  • @touficjammoul4482
    @touficjammoul4482 8 ปีที่แล้ว +1

    thank you a lot!!!! :)it really helps me , i had a homework to find the mode and it really helps ! :)

  • @carltechnologies2829
    @carltechnologies2829 4 ปีที่แล้ว

    Well done Mr, this was real helpful! i was supposed to find minimal and a maximal

  • @carljanzelloropesa8855
    @carljanzelloropesa8855 3 ปีที่แล้ว

    Thank you from 7 years ago.

  • @maxineburgess3422
    @maxineburgess3422 7 ปีที่แล้ว +2

    Very helpful, thank you!

  • @clayrobb5862
    @clayrobb5862 6 ปีที่แล้ว

    Thanks man. Very Helpful! May god Bless you thanks so much. Keep up the good work :D

  • @rashaadmyrie4501
    @rashaadmyrie4501 2 ปีที่แล้ว

    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; ...

  • @seanalexisescallar2216
    @seanalexisescallar2216 5 ปีที่แล้ว

    Thank you. Big Help 😁

  • @raedal-omisi6449
    @raedal-omisi6449 5 ปีที่แล้ว

    Very helpful thank you .

  • @tendies
    @tendies 4 ปีที่แล้ว

    Thank you!

  • @Ashkanbzg
    @Ashkanbzg 5 ปีที่แล้ว

    very helpful

  • @maez6844
    @maez6844 8 ปีที่แล้ว

    How would I find the largest number in an array?