C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Calculate Centigrade To Fahrenheit Using Java
WhatsApp
Senthilvelan Sambamoorthy
Aug 13
2016
1.1
k
0
0
ssvcf.rar
// centigrade to fahrenhit
import
java.io.*;
class
ssvcf
{
public
static
void
main(String arg[])
throws
IOException
{
String s1,s2;
double
t1,t2;
DataInputStream dr =
new
DataInputStream(System.in);
System.out.println(
"\nEnter the temperature in centigrade : "
);
s1 = dr.readLine();
t1 = Double.parseDouble(s1);
t2 = (
1.8
* t1 +
32
);
System.out.println(
"\nThe temperature in farenhit is : "
+t2);
}
}
Java
Up Next
Calculate Centigrade To Fahrenheit Using Java