0

loop increment decrement

I am making a program that can calculate GPA but I cannot write soo much conditions to calculate GPA with decimal precision.So i was thinking if I could make a loop to add decimal values after checking my entered value it would be easier.For example:If i enter 76 percent marks the loop checks for 6 that is above 70 and than add 0.6 to 3 which is 3.6 and this way it calculates my gpa.....

7th Mar 2021, 4:17 PM
Shaban Kiyani
Shaban Kiyani - avatar
1 Respuesta
+ 7
Shaban Kiyani , it would be nice if you could link your code here. thanks!
7th Mar 2021, 4:22 PM
Lothar
Lothar - avatar