Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- char character_input;
- int integer_input;
- float float_input;
- double double_input;
- printf("Enter a character: ");
- scanf("%c", &character_input);
- printf("Enter an integer: ");
- scanf("%d", &integer_input);
- printf("Enter a float-value: ");
- scanf("%f", &float_input);
- printf("Enter a double-value: ");
- scanf("%lf", &double_input);
- silentChar(character_input);
- silentFloatChar(character_input, float_input);
- return 0;
- }
- void silentChar(char character_input)
- {
- printf("\nThis is the silentChar() function.\n");
- printf("The value of the argument is %c.\n\n", character_input);
- }
- void silentFloatChar(char character_input, float float_input)
- {
- printf("This is the silentFloatChar() function.\n");
- printf("The value of the arguments are %c and %f.\n\n", character_input, float_input);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement