All pastes #596570 Raw Edit

Unnamed

public text v1 · immutable
#596570 ·published 2007-06-30 01:32 UTC
rendered paste body
#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;
}