Created
November 23, 2012 23:08
-
-
Save gabrielfalcao/4137661 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
float ask_user_for_dollars(char *question){ | |
char *string = malloc(13); | |
float dollars; | |
printf("%s\n", question); | |
scanf("%s", string); | |
dollars = atoi(string); | |
return dollars; | |
} | |
char *convert_to_textual(float money){ | |
return "one dollar"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment