esercizio programmazione
Posted by raffadrummer on 20-10-2011 21:07
ciao premetto che sono nuovissima in questo campo ma quando eseguo il
programma mi da il warning: no new line at the end of file

il prog รจ questo:



//Converts a Farhenheit temperature to Celsius

#include <stdio.h>

#define FREEZING_PT 32.0f
#define SCALE_FACTOR (5.0f / 9.0f)

int main(void)
{
float farhenheit, celsius;

printf("Enter Farhenheit temperature: ");

scanf("%f", &farhenheit);

celsius = (farhenheit - FREEZING_PT) * SCALE_FACTOR;

printf("Celsius equivalent: %.1f\n", celsius);

return 0;
}


QUALCUNO MI PUO' DIRE DOVE SBAGLIOOOO
Powered by: vbHome (lite) v3.8 and vBulletin v2.3.1
Copyright © 2000 - 2002 Jelsoft Enterprises Limited