Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Varianta 2.
- Subiect 1.
- Exercitiu 1.
- d. x*x==y*y
- Exercitiu 2.
- a) 2,2,1,1,7,7,5
- b)
- c) repeta... pana cand (x==0)
- d) #include <iostream>
- using namespace std;
- int main()
- { int x,y,;
- cout<<"x="<<endl;
- cin>>x;
- while (x){
- cout<<"y="<<endl;
- cin>>y;
- if (x>y){
- cout<<x%10;
- else
- cout<<y%10;
- }
- x=y;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement