Hello
I have to write a program that uses a function called convert(), which prompts hte user for an amount in dollars and returns this value converted into pounds. Exchange rate of 2 dollars per pound.
This is a exercise from Herbert Shildts book Teach Yourself C.
I checked the net to find out what and how this function works but I didnt find anything.
So far I have written:
Code:
#include <stdio.h>
#include <math.h>
void convert(void);
int main(void)
{
int dollar;
printf("Enter the value in dollars: ");
scanf("%d" &dollar);
convert();
printf("This equals to the following amount of pounds");
return 0;
}
void convert()
{
}