fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int num;
  5. float price;
  6.  
  7. printf("Enter an integer: ");
  8. scanf("%d", &num);
  9. printf("Enter a float: ");
  10. scanf("%f", &price);
  11.  
  12. printf("You entered integer: %d and float: %.2f\n", num, price);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5260KB
stdin
Standard input is empty
stdout
Enter an integer: Enter a float: You entered integer: -1497776672 and float: 0.00