Outsbook Problem Soln

Some I tried before:
102 Divisor

#include<cstdio>
#include<iostream>
using namespace std;
int main(){
int d,q,r,divisor;
cin>>d>>q>>r;
divisor=(d-r)/q;
cout<<divisor<<endl;
return 0;
}

Father Daughter Age Problem Maybe It is 7-10th grade problem:
Hints: http://www.jiskha.com/display.cgi?id=1290327598

#include<cstdio>
#include<iostream>
using namespace std;
int main(){
int x,da,fa,p;
cin>>x;
p=x/5;
fa=4*p;
da=p;
cout<<fa<<" "<<da<<endl;
return 0;
}

Mina Rina

#include<cstdio>
#include<iostream>
using namespace std;
int main(){
int x,y,r,m;
cin>>x>>y;
r=(x-y)/2;
m=y+r;
cout<<m<<" "<<r<<endl;
return 0;
}

 

It would be a great help, if you support by sharing :)
Author: zakilive

Leave a Reply

Your email address will not be published.