Write a C program for Implementation of formula : c = a3 +c3+ b3
Program:-
#include <stdio.h>
#include <math.h>
#include <conio.h>
void main()
{
int a,b,c C;
clrscr();
printf("Enter the value of a,c and b");
scanf("%d%d",&a,&b,&c);
c=pow(a,3)+pow(b,3)+pow(c,3);
printf("%d",C);
getch();
}
Output:-
input:-
Enter the value of a, b,c
a=2
b=2
c=2
Enter the value of a, b,c
a=2
b=2
c=2
output:-
12
12
0 comments:
Post a Comment