+ 1

ask user to enter numbers, until he enters - 1.Then displays a sum and average of all numbers entered before -1.

Someone who can help me???

19th May 2020, 9:58 PM
Alvedin
Alvedin - avatar
5 ответов
+ 1
If you show us your attempt?
19th May 2020, 10:00 PM
HonFu
HonFu - avatar
+ 1
WriteLine("Enter the number"); Int num = (int)Convert.ToInt32(ReadLine()); If (numbers > -1 || < - 1) { WriteLine("Enter the number"); } Else { WriteLine("The sum is: {%d\n}", numbers); WriteLine("The average is: {%d\n}", numbers); }
19th May 2020, 10:16 PM
Alvedin
Alvedin - avatar
0
HonFu Can u help me?
19th May 2020, 10:35 PM
Alvedin
Alvedin - avatar
0
I can't help you well myself, because I don't know C#. But I'm sure someone will help you out.
19th May 2020, 10:36 PM
HonFu
HonFu - avatar
0
Okej, I hope that
19th May 2020, 10:37 PM
Alvedin
Alvedin - avatar