+ 1

Is it possible to make a table using the for loop?

I wondering if there was a way to display a table using the for loop. I want to make a temperature conversion table using Fahrenheit and Centigrade but I only learned how to make the Fahrenheit side work okay. How do I get the Centigrade side to display next to the Fahrenheit side? Edit: I need an example. I’m back to square one. I want my code to look like this below: âŹ‡ïž Fahrenheit Centigrade 32 0

4th Apr 2019, 9:08 PM
Sarah Bell
5 Answers
+ 6
Yes. You want to print both together on each line somthing like Print "fahrenheit"+" "+"Centigrade" Print. "32"+" "+"0" If you get stuck ill make an example for you 👍
4th Apr 2019, 9:24 PM
D_Stark
D_Stark - avatar
4th Apr 2019, 10:18 PM
sneeze
sneeze - avatar
0
Thank you! :) I’ll try it now.
4th Apr 2019, 9:33 PM
Sarah Bell
0
Also one more question, is the code written out as cout << “fahrenhiet”+” +”Centigrade” << endl; ?
4th Apr 2019, 9:50 PM
Sarah Bell
0
Is printf a variable for something? I haven’t learned anything about that yet.
4th Apr 2019, 10:40 PM
Sarah Bell