Advertisement
hmawla

C Program

Dec 8th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(){
  4.     int a, b, c;
  5.     float result;
  6.    
  7.     printf("Please input a, b and c respectively: ");
  8.     scanf("%d%d%d", &a, &b, &c);
  9.  
  10.     result = ((4 * a * a * a) + (3 * b * b) - c) / (4 * b * b) * 1.0;
  11.  
  12.     printf("The result is: %f", result);
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement