Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int vout;
- float temp;
- printf("Inserire un voltaggio in mV: ");
- scanf("%d", &vout);
- if(vout>0 && vout<20)
- {
- temp = 3.0/4 * vout;
- }
- if(vout>20 && vout<55)
- {
- temp = 12.0/35 * vout + 57.0/7;
- }
- if(vout>55 && vout<100)
- {
- temp = 8.0/45 * vout + 155.0/9;
- }
- printf("La temperatura relativa a %dmV corrisponde a %f", vout, temp);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement