Monday, June 13, 2011

Finding Roots Of An Equation


#include<stdio.h>
#include<conio.h>


void main()
{
int a,b,c;
clrscr();
printf("enter three nos to find the result of the equation\n1.a+b+c and 4a+4b-2c");
scanf("%d%d%d",&a,&b,&c);
printf("result 1:%d\nresult 2:%d",a+b+c,(4*a)+(4*b)-(2*c));
getch();
}

No comments:

Post a Comment