Me again!
#include <stdio.h>
int main()
{
double y1, y2, y3;
//make the data rows LINE UP.... HOW??????? HOW???????????
y1=99.5;
y2=9.5;
y3=999.5;
printf ("%4.2lf\t%4.2lf\t%4.2lf\n",y1,y2,y3);
y1=999.5;
y2=99.5;
y3=9.5;
printf ("%4.2lf\t%4.2lf\t%4.2lf\n",y1,y2,y3);
getchar ();
getchar ();
return 0;
}
This shows:
99.50 9.50 999.50
999.50 99.50 9.50
How do I make the decimal points line up? I guess I want the numbers to right justify???
Its hard to show on the message board.
2.0 2.0
20.0 20.0