hi to all.. i need help about C programming i have problem with my project, its about that how to determine the max number using for loop ill give the output and pls give me the code plss
Output:
Enter Numbers: 5<--input
Enter first number:1<--input
Enter second number:2<--input
Enter third numbe:3<--input
Enter fourth number:4<--input
Enter fifth number:5<--input
Maximum number is: 5<---result
umbrella
0
Newbie Poster
Recommended Answers
Jump to Post>pls give me the code plss
No, no, and no. We don't do homework, and the more you ask, the more we will consider banning you. If you want to post an honest attempt to solve the problem, we'll be glad to help you with it, but we won't do …
Jump to PostHow about for each number, you save it if it's bigger than the last one?
Jump to Posthow would you do it in your head especially if you had a poor memory.
You would loop through your list, examine first number and write it down on a bit of paper.Then you would look at next number if there was one and if bigger you would scrub out …
Jump to Postindian scorpion dont you like array[0] for some reason. remember in c/c++ arrays are zero based not 1 based.Its possible for that prog to segfault. Also its not a good idea to give homework answers if the OP has shown no effort especially flawed ones.
All 15 Replies
Narue
5,707
Bad Cop
Team Colleague
umbrella
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
Stoned_coder
6
Junior Poster
indianscorpion2
-1
Junior Poster in Training
Stoned_coder
6
Junior Poster
indianscorpion2
-1
Junior Poster in Training
winbatch
7
Posting Pro in Training
Stoned_coder
6
Junior Poster
winbatch
7
Posting Pro in Training
Sauce
0
Junior Poster in Training
indianscorpion2
-1
Junior Poster in Training
Drowzee
3
Posting Whiz in Training
Narue
5,707
Bad Cop
Team Colleague
Dave Sinkula
2,398
long time no c
Team Colleague
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.