punkxyz Posted January 8, 2009 Report Share Posted January 8, 2009 (edited) How to do this program by using for_loop ?How many marks to be entered ? 4Enter marks : 62Enter marks : 91Enter marks : 95Enter marks : 41The highest marks is 95.The lowest marks is 41.The number of students with grade A is 2.This is the sample dialog gotta display when the program is been debug.Grade A is to be awarded to students with marks above 90.Hope anyone here can do me a favour on this program.I have been trying hard to solve it.Pls kindly teach a newbie. Edited January 8, 2009 by punkxyz Quote Link to post Share on other sites
iccaros Posted January 19, 2009 Report Share Posted January 19, 2009 do your home work.. bring us your answers and when your stuck we can help.. but this is basic.. so basic the only people who ask are ones who want someone to do their homework for them.. here is a hintfor (int x = 0; x <=y){ ask for input.. }search for loops on google... tell me what this does..for (; ; ){ // ...}try it in your code today.. Quote Link to post Share on other sites
David Adam Posted July 25, 2017 Report Share Posted July 25, 2017 (edited) Firstly you just start loop and ask from user to enter the number, as user enter the loop will be run at that period of time, In the loop you just take input the numbers. in another loop you compare all the number for greatest number and lowest number. Any problem then specify... -------------------------------------------- HND Assignment Help Edited August 19, 2017 by David Adam Quote Link to post Share on other sites
flashh4 Posted July 25, 2017 Report Share Posted July 25, 2017 David Adam, Welcome to the forum !! You do realize this post is from 2009 don't you ?? Chuck Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.