Unnamed
public text v1 · immutable#include <stdio.h>
void myFlush(FILE * st);
int main(void)
{
char source, destination;
float InputValue = 0;
myFlush(stdin);
printf("Enter the source currency: ");
scanf("%c", &source);
myFlush(stdin);
printf("Enter the destination ");
scanf("%f", &InputValue);
return 0;
}
void myFlush(FILE * st)
{
int c;
do {
c = fgetc(st);
} while(c != '\n' && c != EOF);
return;
}