+ 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???
5 odpowiedzi
+ 1
If you show us your attempt?
+ 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);
}
0
HonFu Can u help me?
0
I can't help you well myself, because I don't know C#.
But I'm sure someone will help you out.
0
Okej, I hope that