#include <stdio.h>
#include <conio.h>
void main()
{
float x,y,z;
clrscr();
printf("X \t Y \t Z\n");
for(x=1;x<=5;x+=.5)
{
for(y=0;y<=4;y++)
{
z=5+3*(y+5*x);
printf("%2.1f \t %1.0f\t %4.2f\n",x,y,z);
}
}
getch();
}
#include <conio.h>
void main()
{
float x,y,z;
clrscr();
printf("X \t Y \t Z\n");
for(x=1;x<=5;x+=.5)
{
for(y=0;y<=4;y++)
{
z=5+3*(y+5*x);
printf("%2.1f \t %1.0f\t %4.2f\n",x,y,z);
}
}
getch();
}
0 comments :
Post a Comment