Advertisement
PIBogdanov

datatypes

Oct 6th, 2023
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 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.     scanf("%d", &a);
  14.  
  15.     scanf(" %c", &ch);
  16.  
  17.     scanf("%f", &f);
  18.  
  19.     printf("%d %c %f", a, ch, f);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement