💻 Hacer un programa para convertir una temperatura ingresada de Celsius a Fahrenheit.
El grado Celsius (símbolo °C), históricamente conocido como grado centígrado, es la unidad termométrica cuyo 0 se ubica 0.01 grados por debajo del punto triple del agua y su intensidad calórica equivale a la de kelvin. Referencia : https://es.wikipedia.org/
👉 Celsius a Fahrenheit de Google
Para convertir de grado celsius a grado fahrenheit se requiere aplicar la siguiente formula :
CELSIUS = 1
FAHRENHEIT = 33.8
FORMULA : FAHRENHEIT = ( CELSIUS * (9 / 5) ) + 32
Algoritmo programacion_work
//Converir de grados Celsius a Fahrenheit
Definir C, F como Real;
Escribir Sin Saltar "GRADOS CELSIUS : ";
Leer C;
F <- ( C * (9/5) ) + 32;
Escribir "A FAHRENHEIT : ", F;
FinAlgoritmo
print("27. CONVERTIR DE GRADOS CELSIUS A FAHRENHEIT.")
C = float(input("Ingrese grados celsius : "))
F = ( C * (9/5) ) + 32
print("A FAHRENHEIT : ",F)
#include<stdio.h>
int main() {
float C=0.0, F=0.0;
printf("27. PASAR DE CELSIUS A FAHRENHEIT. \n\n");
printf("INGRESE GRADOS CELSIUS : ");
scanf("%f",&C);
F = ( C * ( float(9)/float(5) ) ) + 32;
printf("A FAHRENHEIT : %.2f\n",F);
return 0;
}
#include<iostream>
using namespace std;
int main() {
float C=0.0, F=0.0;
cout << "27. PASAR DE CELSIUS A FAHRENHEIT. \n\n";
cout << "INGRESE GRADOS CELSIUS : ";
cin >> C;
F = ( C * (float(9)/float(5)) ) + 32;
cout << "A FAHRENHEIT : " << F << endl;
return 0;
}
using System;
namespace programacion_work
{
internal class celsius_fahrenheit
{
static void Main(string[] args)
{
double C, F = 0.0;
Console.Write("INGRESE GRADOS CELSIUS : ");
C = double.Parse(Console.ReadLine());
F = (C * ( (double)9 / (double)5) ) + 32;
Console.WriteLine("A FAHRENHEIT : " + F);
}
}
}
package programacion_work;
import java.util.Scanner;
public class celsius_fahrenheit {
public static void main(String[] args) {
Scanner ingreso=new Scanner(System.in);
double f, c;
System.out.print("27. PASAR DE CELSIUS A FAHRENHEIT.\n\n");
System.out.print("INGRESE GRADOS CELSIUS : ");
c = ingreso.nextDouble();
f = ( c * (9/5.0) ) + 32;
System.out.println("A FAHRENHEIT : " + f);
}
}