Create a new project and using a for loop we are going to ad
You Are Eligible For 15% Discount This Month!
Create a new project and using a for loop we are going to add the sum of five numbers. Use a const int and call it MAX, and int for total and number. Prompt the user to enter a number and cast the response to an integer. Also inside the for loop total will equal number using the += operator. Outside the for loop display the answer to console.Next, create a Do Loop that asks a user if they would like to perform a temperature conversion chart. The program will then ask for a Fahrenheit or Celsius temperature and convert it to the other scale. The program should loop and repeatedly ask the user if he/she wants to continue.
Leave a ReplyWant to join the discussion?
Feel free to contribute!