Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int x,y,aux=1;
- float nr;
- cout<<"x=";cin>>x;
- cout<<"y=";cin>>y;
- int cy=y;
- while (y!=0)
- {
- aux*=10;
- y/=10;
- }
- nr=(float)cy/(float)aux;
- nr+=x;
- cout<<"nr="<<nr;
- // */
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement