Find Physical Address (Paging Techniques)

#include <iostream>
using namespace std;
int main() {int a,b,c,d,e;
            cin>>a>>b>>c>>d>>e;
            if(a==5)
            { int sum=a*b+e;
	cout<<sum;}
            else 
              { int sum=a*b+c;
	cout<<sum;}
	return 0;
           }

Leave a comment

Design a site like this with WordPress.com
Get started