Advertisement
PIBogdanov

datatypes

Oct 6th, 2023
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5.     int a = 5;
  6.  
  7.     char ch = 'A';
  8.  
  9.     float f = 5.5f;
  10.  
  11.     printf("%d %c %f\n", a, ch, f);
  12.  
  13.     /*
  14.     scanf("%d", &a);
  15.  
  16.     scanf(" %c", &ch);
  17.  
  18.     scanf("%f", &f);
  19.     */
  20.  
  21.     scanf("%d %c %f", &a, &ch, &f);
  22.  
  23.     printf("%d %c %f", a, ch, f);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement