f(x)=3×2 -4x +3 fonksiyonunu, x in 0.0, 0.1, 0.2 ,…,1.9 değerleri için hesaplayan ve her sonucu f(0.0)=3.0 … şeklinde görüntüleyen program.
#include<stdio.h>
main( )
{
float x,f;
for(x=0.0;x<2.0;x=x+0.1)
{
f=3*x*x-4*x+3;
printf(“f(%f)=%f”,x,f);
printf(“\n”);
}
}