Untitled
unknown
plain_text
2 years ago
474 B
10
Indexable
#include <stdio.h>
#include <stdlib.h>
int main (void){
float tensione;
float temperatura;
float m;
printf("Inserisci la tensione : ");
scanf("%f",&tensione);
if (tensione>=0 && tensione<=20)
{
m = (double) (20-0)/abs(0-15);
float x = tensione/m;
printf("La temperatura e' : %.2f",x);
}else if (tensione>20 && tensione<=55)
{
}else if (tensione>50 && tensione<=100){
}
}Editor is loading...