APC-PRAC-010.c (579B)
1 /* 2 * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 3 * Repo: https://github.com/notamitgamer/bsc 4 * License: MIT 5 */ 6 7 /* WAP to calculate and display the valve of the given expression : 8 (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) 9 take a, b, c as input. 10 */ 11 12 #include <stdio.h> 13 #include <math.h> 14 int main() 15 { 16 double a, b, c, result; 17 printf("Enter the value for a, b and c : "); 18 scanf("%lf %lf %lf", &a, &b, &c); 19 result = (1 / pow(a, 3)) + (1 / pow((b + 2), 3)) + (1 / (pow(c, 4) + sqrt(2))); 20 printf("\nResult = %g", result); 21 return 0; 22 }