j

Tuesday, 3 November 2015

Write a program that take the values of x, y and z from user and solve the following equation (x^3+y^3+3xyz)



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
long int x,y,z,res;
printf("Enter the values of x,y and z ::");
scanf("%d%d%d",&x,&y,&z;
res=(x*x*x)+(y*y*y)+(3*x*y*z);
printf("The answer is %d",res);
getch();
}

Subscribe to this Blog via Email :