Advertisement
Joao_Joao

Questão 8 Lista de Exercícios IFPB

Apr 25th, 2022
1,081
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.   double celsius;
  5.   printf("Insira a temperatura em Celsius: ");
  6.   scanf("%lf", &celsius);
  7.   printf("%.1lf °C em Fahrenheit: %.1lf°F\n", celsius, 32 + (celsius * (9/5.0)));
  8.   printf("%.1lf °C em Kelvin: %.1lfK\n", celsius, celsius + 273.15);
  9.  
  10.   return 0;
  11. }
  12.  
Advertisement
RAW Paste Data Copied
Advertisement