A car can travel 5.3 miles in 1 liter. Write a program that inputs petrol in liters

By: Prof. Dr. Fazal Rehman | Last updated: February 3, 2024

A car can travel 5.3 miles in 1 liter. Write a program that inputs petrol in liters and displays how much distance the car can cover using the available petrol

Output

Enter the petrol in liters: 4
The car can cover 21.2 miles with the available petrol.

All Copyrights Reserved 2025 Reserved by T4Tutorials