Solve expression program in C++ (C Plus Plus)

Solve expression program in C++ (C Plus Plus)

  1. solve expression program in C++ (C Plus Plus).
// solve the expreesion
// a*b/(-c*36%(20-2))*d
#include <iostream>
using namespace std;
int main()
{
int a,b,c,d,r;
a=10;
b=20;
c=15;
d=8;
r=a*b/(-c*31%13)*d;
cout<<“Result of expression is “<<r<<endl;}

Output:

solve expression
Figure: solve expression
Prof. Fazal Rehman Shamil
Researcher, Publisher of International Journal Of Software Technology & Science ISSN: 2616-5325
Instructor, SEO Expert, Web Programmer and poet.
Feel free to contact.