loop increment decrement | Sololearn: Learn to code for FREE!

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.....

gpa

3/7/2021 4:17:49 PM

Shaban Kiyani

1 Answer

New Answer

+7

Shaban Kiyani , it would be nice if you could link your code here. thanks!