C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
/*
For this code you are to enter the following to show how it works
First line: Enter a string of 4 or more charaters, you can type as many as you want.
Second line: Enter a single charater or a sting of charaters, only the first char will be saved
Third line: Enter a second charater or a sting of charaters, only the first char will be saved
Fourth line: Enter a integer value (there is not error checking on this line)
Example input
William
FJHD
GJEND
15
Output
The string is: Will
The char is: F
The second char is: G
The digit is: 15
The point of this is to show ways of clearing the input buffer when using multipule calls to scanf()
*/
int main(void) {
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run