0

Output error

I'm trying to get a percentage for each mark entered but in decimal. Can someone explain why I'm not getting the desired output. Input : 2 1 3 Output should be : 0.25 0.75 https://code.sololearn.com/cXgzZGNg4z5h/?ref=app

3rd Jun 2022, 12:33 PM
Siyabonga Mbendane
Siyabonga Mbendane - avatar
1 Answer
+ 1
Siyabonga Brian Why p+= ? vect.size() returns long unsigned int so comparing with int may give warning so change data type of i for(long unsigned int i = 0; i < vect.size(); i++)
3rd Jun 2022, 1:37 PM
AÍąJ
AÍąJ - avatar