Beginner C/C++

Moderators: None (Apply to moderate this forum)
Number of threads: 5428
Number of posts: 16949

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
need help in C Posted by ccoding on 4 Mar 2009 at 3:48 PM
hi,

I need little bit help in C coding

I have to use these functions (its shown below) to write a program that prints charts showing the Fahrenheit equivalent to c temp from 0-100.



int celsiusToFahrenheit(int celsiusTemp)
{
    return ((9.0/5.0) * celsiusTemp) + 32; /* Formula of celsius to fahrenheit */
}




thanks alot
Report
Re: need help in C Posted by ccoding on 4 Mar 2009 at 9:07 PM
some one help me out

thanks
Report
Re: need help in C Posted by Actor on 5 Mar 2009 at 3:29 AM
Ok.

Do you know what a for loop is?


Report
Re: need help in C Posted by ccoding on 5 Mar 2009 at 5:09 PM
yes i do know what for loop it .
Report
Re: need help in C Posted by Lundin on 6 Mar 2009 at 12:35 AM
for(i=temperatureThis; i<temperatureThat; i+=something)
{
  print celsiusToFahrenheit(i)
}
Report
Re: need help in C Posted by ccoding on 6 Mar 2009 at 12:26 PM
how this gonna work ??
Report
Re: need help in C Posted by ccoding on 6 Mar 2009 at 12:26 PM
how this gonna work ??



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.