Do the following for the user-entered number of students.
Find the average marks for a student of his marks in 3 subjects. Print whether he
passed or failed. A student will fail if his average is less than 50. Use for loop...can u help me writing this pgm.....thankss:-/
vijaysrivatsa 0 Newbie Poster
Recommended Answers
Jump to PostTo give you an example of how this problem could be solved:
Input number of students Loop while a counter is less then students { input grade1 input grade2 input grade3 average = (grade1 + grade2 + grade3) / 3 if average < 50 print "you've failed!" …
All 4 Replies
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
vijaysrivatsa 0 Newbie Poster
SaiRam5 0 Newbie Poster
Adak 419 Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.