Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- using namespace std;
- ifstream f("date.in");
- ofstream g("date.out");
- int main()
- {
- int x,y,z,nr=1,i,nr2,c=0,xyz=0;
- f>>x>>y>>z;
- for (i=1;i<=x-1;i++)
- {
- nr=nr*10;
- }
- i=1;
- do
- {
- y=y*10;
- i++;
- }
- while (i<x);
- i=1;
- do
- {
- z=z*10;
- i++;
- }
- while (i<x-1);
- xyz=y+z;
- g<<xyz;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement