lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #include <stdio.h> |
2 | #include <stdlib.h> | ||||
3 | |||||
4 | int | ||||
5 | main (void) | ||||
6 | { | ||||
7 | double d; | ||||
8 | int c; | ||||
9 | |||||
10 | if (scanf ("%lg", &d) != 0) | ||||
11 | { | ||||
12 | printf ("scanf didn't failed\n"); | ||||
13 | exit (1); | ||||
14 | } | ||||
15 | c = getchar (); | ||||
16 | if (c != ' ') | ||||
17 | { | ||||
18 | printf ("c is `%c', not ` '\n", c); | ||||
19 | exit (1); | ||||
20 | } | ||||
21 | |||||
22 | return 0; | ||||
23 | } |