Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.88 KB | None | 0 0
  1. int main()
  2. {
  3.     char character_input;
  4.     int integer_input;
  5.     float float_input;
  6.     double double_input;
  7.     printf("Enter a character: ");
  8.     scanf("%c", &character_input);
  9.     printf("Enter an integer: ");
  10.     scanf("%d", &integer_input);
  11.     printf("Enter a float-value: ");
  12.     scanf("%f", &float_input);
  13.     printf("Enter a double-value: ");
  14.     scanf("%lf", &double_input);
  15.     silentChar(character_input);
  16.     silentFloatChar(character_input, float_input);
  17.  
  18.  
  19.  
  20.     return 0;
  21. }
  22.  
  23. void silentChar(char character_input)
  24. {
  25.     printf("\nThis is the silentChar() function.\n");
  26.     printf("The value of the argument is %c.\n\n", character_input);
  27. }
  28.  
  29. void silentFloatChar(char character_input, float float_input)
  30. {
  31.     printf("This is the silentFloatChar() function.\n");
  32.     printf("The value of the arguments are %c and %f.\n\n", character_input, float_input);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement