0% found this document useful (0 votes)
40 views

ITC Lab 5.0 Graded

Enter marks for 5 students as float variables from the user. Check which students rank 1st, 2nd, and 3rd. Also check if any marks are negative, and re-prompt the user to enter a positive number if so. Keep track of negative entries, and if the user enters 3 negatives, print a message to try again later.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

ITC Lab 5.0 Graded

Enter marks for 5 students as float variables from the user. Check which students rank 1st, 2nd, and 3rd. Also check if any marks are negative, and re-prompt the user to enter a positive number if so. Keep track of negative entries, and if the user enters 3 negatives, print a message to try again later.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Graded Lab No.

2
Task No.1
Enter marks for five students that are float numbers from user in five different variables
that are
Student1 , Student2 , Student3 , Student4 , Student5
1) Check which students comes first, second and third.
2) Check the user enters a positive number.
3) Average of marks
If the user enters a negative number take the input again. Keep track of the negative
numbers if the user enters negative number three times print the message that try again
later.

You might also like