सीधे मुख्य सामग्री पर जाएं

संदेश

Programming लेबल वाली पोस्ट दिखाई जा रही हैं

CPP Examples: If-Else

The LeVan Car Rental company charges $0.25/mile if the total mileage does not exceed 100. If the total mileage is over 100, the company charges $0.25/mile for the first 100 miles, then it charges $0.15/mile for any additional mileage over 100. Write a program so that if the clerk enters the number of miles, the program would display the total price owed.

A Simple CPP Program

 This is the simples C++ program. It displays a sentence on the console or the terminal