Created
October 6, 2021 19:53
-
-
Save TornaxO7/b2a4227bf9c9472a8f0f80f307c84144 to your computer and use it in GitHub Desktop.
A C-test program for https://stackoverflow.com/questions/69442861/using-a-function-to-calculate-water-bill-in-c/69443150\?noredirect\=1\#comment122781803_69443150
This file contains 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> | |
int main() { | |
int num; | |
char test; | |
while (fscanf(stdin, " %c%d", &test, &num) == 2) | |
printf("%c, %d\n", test, num); | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment