To take temperature in Celsius as float type from user and convert into Fahrenheit. [ SUBJECT ARTIFICIAL INTELLIGENCE, CLASS 9th ]
Answers
Answered by
0
Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter value in celcius:");
float celcius = sc.nextFloat();
float fahr = (((9/5)*(float)celcius))+32;
System.out.println(celcius + " in Fahrenheit is " + fahr);
}
}
Explanation:
Answered by
0
Answer:
- #include<stdio.h>
- int main()
- {
- float fahrenheit, celsius;
- celsius = 24;
- fahrenheit =( (celsius*9)/5)+32;
- printf("\n\n Temperature in fahrenheit is: %f",fahrenheit);
- return (0)
Mark as Brainliest!
Similar questions