BestTechie Forums: Need Help... - BestTechie Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need Help...


#1 User is offline   punkxyz 

  • Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 08-January 09

Posted 08 January 2009 - 08:45 AM

How to do this program by using for_loop ?


How many marks to be entered ? 4
Enter marks : 62
Enter marks : 91
Enter marks : 95
Enter marks : 41

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

This post has been edited by punkxyz: 08 January 2009 - 08:45 AM


#2 User is offline   iccaros 

  • UberTechie
  • Group: Linux Experts
  • Posts: 1292
  • Joined: 31-August 04
  • Location:Great State of Washingtion
  • Operating System:Gentoo,Iccaros-Linux(of course),Slackware,GentooX,Red Hat, Windows (3.1 to VISTA BETA), MAC OSX (10.4 currently),LFS, Solaris 8,9,10, Trusted Solaris, FreeBSD, OPENBSD, NETBSD

Posted 19 January 2009 - 02:39 AM

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 hint

for (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.. :)

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users