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 (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.