![]() |
conversion program
Hello all. I have been trying to write a program that converts degrees fahrenheit to celsius.
The way I have the program written now when you hit run it will just calculate conversions up to the max_fahrenheit = 100. I want to be able to ask the person using the program to enter the number of conversions they want to see. I have put a text block around the code that asks for input below. I need to figure out how to take that input and give the user back the number of conversions they want. Any help would be greatly appreciated. Code:
#include<iostream> |
Re: conversion program
Put a for loop around the code you want to repeat:
Code:
cin<num_conversions; |
Re: conversion program
Quote:
|
| All times are GMT +5.5. The time now is 01:42. |