write a function to calculate the maximum number of four numbers
notice that the four numbers will be entered by the user
RanyaAnwar
0
Newbie Poster
Recommended Answers
Jump to PostWe won't simply do your homework for you.
Show us how far you've got. Ask a question about something in your code you don't understand. You're going to have to do more than simply put the question up and hope we do it for you.
Jump to PostWell, you set n to zero on line 7 (n = 0;) and then you never change it so it's obviously still zero. Remember that == checks for equality. It does not set num to equal anything. Therefore, num==a; should be num = a; and then continue the same pattern …
All 5 Replies
Moschops
683
Practically a Master Poster
Featured Poster
RanyaAnwar
0
Newbie Poster
necrolin
94
Posting Whiz in Training
Moschops
683
Practically a Master Poster
Featured Poster
RanyaAnwar
0
Newbie Poster
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.