Using for loop create a program that converts temperature either from Celsius to Fahrenheit or vice versa.

Ask the user what will be the input of the user either in Celsius or Fahrenheit. If the input is invalid, print invalid and ask to try again.

Ask the user to input the start, range, and interval separated by an asterisk. For example 0*10*2. This means that the start of the conversion will be from 0 to 10 with an interval of 2, thus the value to be converted will be 0, 3, 6, 9

If the start<end, then the interval should be 0<interval otherwise, your program will display an error and ask to try again for #2. Or

If the start>end, then the interval should be 0>interval otherwise, your program will display an error and ask to try again for #2.

If the user inputs only one value, like 10. This means that the start is equal to 1 which will be the default value for start, up to 10, and the interval is 2 which will be the default value of the interval if start<end.

If the user input has two values like 10*2, this means that the start is equal to 10 up to 2. The interval is set to the default value which is equal to -2 since start>end.

I don't see any questions or where you are stuck. What this looks like is homework or an assignment. Please check the following:

Do provide evidence of having done some work yourself if posting questions from school or work assignments

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.