0

how to get desired number of grades rather than 10. i want to get (enter grade#)term for the number that user inputs.please give

while (number<=10) //grade user input for valid grades and number of grades. { Console.Write("Enter grade #{0}:", number); int.TryParse(Console.ReadLine(), out grade); number++; }

19th Oct 2020, 5:34 PM
ramandeep kaur
3 Answers
0
int MaxGrade= Convert.ToUInt64(Console.Read()) ; while(number<=MaxGrade) { .... }
19th Oct 2020, 5:55 PM
Jayakrishna 🇼🇳
0
number is the counting of grades
19th Oct 2020, 6:05 PM
ramandeep kaur
0
Am not understood.. Is that not working?
22nd Oct 2020, 9:23 PM
Jayakrishna 🇼🇳