Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GYAK9_5
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b,c,d,e;
- cout<<"a=";cin>>a;
- cout<<"b=";cin>>b;
- cout<<"c=";cin>>c;
- cout<<"d=";cin>>d;
- if (a<e)
- e=a;
- if (b<e)
- e=b;
- if (c<e)
- e=c;
- if (d<e)
- e=d;
- cout<<"A legkisebb-->"<<e;
- return 0;
- }
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- GYAK9_9
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b,c;
- cout<<"a=";cin>>a;
- cout<<"b=";cin>>b;
- if (a<c)
- c=a;
- else
- c=b;
- cout<<"A kisebbik szam elso szamjegye:"<<c/1000;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment