question:
write a c++ program that displays a table of 20 temperature conversion from fahrenheit to celcius. the table should start with a fahrenheit value of 20 degrees and be incremented in values of 4 degrees. recall that celcius = (5.0/9.0)*(fahrenheit-32)
this is my guess..
i should use for loop,
the initial value is 20 degrees with i=+4
but the problem is how can i get until 20 temperature
You can use another variable in the for loop (say j) that counts from 1 to 20 or you can use a while loop and use a counter and increment everytime you repeat the loop. Break from the while loop when that counter hits 20.