Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Wednesday, February 9, 2011

C9 : Polinomial equation


Back to Home   &  C


//To find polinomial equation 3X2 + 2X + 3

#include<stdio.h>
#include<conio.h>
void main()
      {
      clrscr();
      float a,b;
      printf("Enter the value of X\n");
      scanf("%f",&a);
      b=3*a*a+2*a+3;
      printf("Result=%f",b);
getch();
}
-----------------------------------------------------------------
Output
Enter the value of X
2
Result=19
===============================================

Back to Home   &  C

No comments: