How to write arithmetic expressions in a C program

View

Following examples can be referred to understand that how arithmetic expressions can be written in a C program-

  1. ans = b * b – 4 * a * c ;
  2. ans1 = (-b + sqr ( b * b – 4 * a * c )) / (2 * a) ;
  3. ans2 = (-b - sqr ( b * b – 4 * a * c )) / (2 * a) ;
  4. ans = (a – b) * (a – b);
  5. ans = pow (e , x );
  6. ans = fact (n) / (fact (r) * fact (n-r));
  7. area = 3.14 * radius * radius;
  8. circum = 2 * 3.14 * radius;
Last modified: Tuesday, 21 September 2021, 9:39 AM