GerexD

GYAK9_5,9

Dec 12th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. GYAK9_5
  2.  
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int a,b,c,d,e;
  10. cout<<"a=";cin>>a;
  11. cout<<"b=";cin>>b;
  12. cout<<"c=";cin>>c;
  13. cout<<"d=";cin>>d;
  14.  
  15. if (a<e)
  16. e=a;
  17. if (b<e)
  18. e=b;
  19. if (c<e)
  20. e=c;
  21. if (d<e)
  22. e=d;
  23. cout<<"A legkisebb-->"<<e;
  24.  
  25. return 0;
  26. }
  27. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  28.  
  29. GYAK9_9
  30.  
  31. #include <iostream>
  32.  
  33. using namespace std;
  34.  
  35. int main()
  36. {
  37. int a,b,c;
  38. cout<<"a=";cin>>a;
  39. cout<<"b=";cin>>b;
  40.  
  41. if (a<c)
  42. c=a;
  43. else
  44. c=b;
  45. cout<<"A kisebbik szam elso szamjegye:"<<c/1000;
  46. return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment