Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- double nreal(int x,int y)
- {
- double nd;
- nd=y;
- while (y)
- {
- y/=10;
- nd/=10;
- }
- nd+=x;
- return nd;
- }
- int main()
- {
- int x,y;
- cin>>x>>y;
- cout<<nreal(x,y);
- return 0;
- }
- //SE TRIMIE DOAR nreal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement