fork download
  1. /*******************************************************************************
  2. * Compute Total Sales Tax With Set Numbers
  3. *
  4. *__________________________________________________________
  5. * Calculate 52 - 6% of itself
  6. *____________________________________________________________
  7. *OUTPUT
  8. * Code prints the calculated number of 52 - 6% of 52
  9. *******************************************************************************/
  10. #include <iostream>
  11. using namespace std;
  12.  
  13. int main() {
  14. cout << 52 - (52 * .06); //52 - 6%
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
48.88