Advertisement
R3v3rs3r

Program to evaluate the arithmetic expression [C]

Nov 12th, 2022 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | Source Code | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. int main()
  5. {
  6.     int A, B, D, E, F, G;
  7.     printf("Enter A, B, D, E, F, G: ");
  8.     scanf("%d%d%d%d%d%d", &A, &B, &D, &E, &F, &G);
  9.     //Equation = (A+B/B*D-E)*(F-G)
  10.     printf("\nValue: %d", (A+B/B*D-E)*(F-G));
  11.     getch();
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement