Practicals C,C++,C#,VB and Shell Script
#include<stdio.h>#include<conio.h>#include<math.h>float expr(float);void main(){float x,value;printf("Enter the value of x ");scanf("%f",&x);value=(*expr)(x);printf("value =%f\n",value);getch();}float expr(float x){return(x*x-2);}
No comments:
Post a Comment