Computer Science, asked by YOURDADPRODUCTION, 1 day ago

To take temperature in Celsius as float type from user and convert into Fahrenheit. [ SUBJECT ARTIFICIAL INTELLIGENCE, CLASS 9th ]​

Answers

Answered by samarthkrv
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 aidenfernandes0407
0

Answer:

  1. #include<stdio.h>
  2. int main()
  3. {
  4. float fahrenheit, celsius;
  5. celsius = 24;
  6. fahrenheit =( (celsius*9)/5)+32;
  7. printf("\n\n Temperature in fahrenheit is: %f",fahrenheit);
  8. return (0)

Mark as Brainliest!

Similar questions