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-
- ans = b * b – 4 * a * c ;
- ans1 = (-b + sqr ( b * b – 4 * a * c )) / (2 * a) ;
- ans2 = (-b - sqr ( b * b – 4 * a * c )) / (2 * a) ;
- ans = (a – b) * (a – b);
- ans = pow (e , x );
- ans = fact (n) / (fact (r) * fact (n-r));
- area = 3.14 * radius * radius;
- circum = 2 * 3.14 * radius;
Last modified: Tuesday, 21 September 2021, 9:39 AM