Advertisement
edyun

Tema Info

Oct 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Problema #815
  2.  
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int a,b;
  10. cin >> a >> b;
  11. cout << b/a;
  12. }
  13.  
  14.  
  15. ---------------------------------------------------------------
  16. Problema #2061
  17.  
  18. #include <iostream>
  19.  
  20. using namespace std;
  21.  
  22. int main()
  23. {
  24. int a,b;
  25. cin >> a >> b;
  26. cout << b/a;
  27. }
  28.  
  29. ---------------------------------------------------------------
  30. Problema #102
  31.  
  32. #include <iostream>
  33.  
  34. using namespace std;
  35.  
  36. int main()
  37. {
  38. int a,unit,zeci;
  39. cin >> a;
  40. unit = a%10;
  41. a = a/10;
  42. zeci = a%10;
  43. cout << unit+zeci;
  44. }
  45. --------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement