Yeah I was able to find a way around that with:
int input = 0;
int total = 0;
int x = 1;
while (x > 0) {
Console.Write("Input a number: ");
input = Int32.Parse(Console.ReadLine());
if (input < -1)
break;
total += input;
}
Console.WriteLine("\nSum total is" + total);
“A local variable named `input' cannot be declared in this scope because it would give a different meaning to `input', which is already used in a `parent or current' scope to denote something else
Compilation failed: 1 error(s), 0 warnings”
It seems this method didn’t work.
So I’m supposed to break the loop when a negative number is inputted then give out the result of all inputted numbers.
<int value = 0;
int total = 0;
int x = 1;
while ( x <= 1){
Console.Write("Input a number: ");
value = Int32.Parse(Console.ReadLine());
total = value + total;
}
Console.WriteLine($"{total}");>
So I’m taking my first coding lessons at university and the way they teach is really disappointing. How do I learn about a language the appropriate way?
My 2017 Macbook Pro had a similar issue (before I sold it). Would be unable to load pages until I turned WiFi on and off. It even happens on my iPad 2018.
It's irritating.
So according to Louis, there is no water damage or fall damage, just a faulty T2 chip.
Yet Apple is claiming otherwise. What are your thoughts on this? Apple is lying (allegedly), might be a possible lawsuit incoming.