You are on page 1of 1

#include <stdio.

h>
#include <math.h>

int main()
{
float x,product,addition;
x=1.0;
printf("x\t\t\tx*x\t\t\tx+x");
while(x<=10)
{
product=x*x;
addition=x+x;
x=x+0.5;
printf("%.2f\t\t\t%.2f\t\t\t%.2f\n",x,product,addition);

}
return 0;
}

You might also like