for loop!

This is a discussion on for loop! within the C++ Programming forums, part of the General Programming Boards category; Code:
#include <stdio.h>
int main ()
{
int num=1,sqr=1,cube=1,pow;
printf(" NUMBER SQUARE CUBE\n");
printf(" ====== ====== =====\n");
for(num=1; num<=10; num++)
...

Your query is not very clear, what do you mean exactly? That is different from what should happen already? do you mean all the columns evenly 'left justified' ? Try using a \t to output a tabspace after each value in the line.