fork download
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5. int number=10;
  6. int A=6;
  7. int score;
  8. float money=150.50;
  9. printf("Input A : ");
  10. scanf("%d",&A);
  11. score=number*A;
  12. money=money-score;
  13. printf("Score = %d\n",score);
  14. printf("Money = %.2f",money);
  15. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Input A : Score = 60
Money = 90.50