fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a;
  6. char b;
  7. float c;
  8. scanf("%d",&a);
  9. printf("integer:%d\n",a);
  10. scanf("%c",&b);
  11. printf("character:%c\n",b);
  12. scanf("%f",&c);
  13. printf("float:%f\n",c);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5288KB
stdin
23-2.5
stdout
integer:23
character:-
float:2.500000