Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Today at 10:50 AM
Ad icon
Cam ෂෝ කරන්න ආස කෙල්ලෝ
vip video seller srilanka
Updated:
Today at 2:17 AM
Cam show job
vip video seller srilanka
Updated:
Today at 2:01 AM
Vip විඩීයෝ තියේ හොරෙන් රෙකෝඩ් කරපුවා
vip video seller srilanka
Updated:
Today at 1:26 AM
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Monday at 12:26 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
C Programmers Help Me!!!!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="senewimala1988" data-source="post: 3966840" data-attributes="member: 63023"><p>Mchhho mama godak durata pracice kala...Apita kohomath lecture ekakuth miss vuna wednesday holiday nisa..Eka nam wadakuth ne...</p><p>Mata ara temperature eka haduwa..But eka two times input karanna oni...1st either celsius or fahrenheit..2nd the temperature..</p><p>Mata 2nd eka nam therune ne..</p><p>1st ekath thaniyen practice karala thama hada gaththe..Eth oya dunnu vidiye advance yanna mage knowledge eka madi!!!</p><p></p><p>/*Program-4.1*/</p><p>#include<stdio.h></p><p>int main()</p><p>{</p><p>char temp;</p><p>float C,F;</p><p>printf("What is your input type(C/F)?");</p><p>scanf("%c",&temp);</p><p> if(temp=='C')</p><p> {</p><p> printf("Type your temperature in Celsius: ");</p><p> scanf("%f",&C);</p><p> F=(9*C/5)+32;</p><p> printf("Temprature reading: %.2f",F);</p><p> printf(" F\n");</p><p> }</p><p> else if(temp=='F')</p><p> {</p><p> printf("Type your temperature in Farenheit: ");</p><p> scanf("%f",&F);</p><p> C=5*(F-32)/9;</p><p> printf("Temperature Reading: %.2f",C);</p><p> printf(" C\n");</p><p> }</p><p> else</p><p> printf("STOP! Wrong input\n");</p><p>return 0;</p><p>}</p></blockquote><p></p>
[QUOTE="senewimala1988, post: 3966840, member: 63023"] Mchhho mama godak durata pracice kala...Apita kohomath lecture ekakuth miss vuna wednesday holiday nisa..Eka nam wadakuth ne... Mata ara temperature eka haduwa..But eka two times input karanna oni...1st either celsius or fahrenheit..2nd the temperature.. Mata 2nd eka nam therune ne.. 1st ekath thaniyen practice karala thama hada gaththe..Eth oya dunnu vidiye advance yanna mage knowledge eka madi!!! /*Program-4.1*/ #include<stdio.h> int main() { char temp; float C,F; printf("What is your input type(C/F)?"); scanf("%c",&temp); if(temp=='C') { printf("Type your temperature in Celsius: "); scanf("%f",&C); F=(9*C/5)+32; printf("Temprature reading: %.2f",F); printf(" F\n"); } else if(temp=='F') { printf("Type your temperature in Farenheit: "); scanf("%f",&F); C=5*(F-32)/9; printf("Temperature Reading: %.2f",C); printf(" C\n"); } else printf("STOP! Wrong input\n"); return 0; } [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom