hi all
i have an error message in my code ..
the question is :
write a C program that asks for input as US dollars and uses the function to display the output as GBP sterling. The current exchange rate is 1 GBP to 1.5207 USD.
if anyone could help me with it
my code :
Code:
#include <stdio.h>
int main(void)
{
int input = 0;
do
{
printf( "\nPlease enter a dollar amount to exchange to GBP: " );
scanf( "%d", &input );
if ( input > 0 )
printf ("Great Britian: = "%f"/ 1.5207\n",GBP);
} while ( input< 20 );
return 0;
}
i asked to do it with this line but i coudn't
Code:
double gbp_to_usd( double );
thanks