Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. 109. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main(){
  6. int n;
  7. cin>>n;
  8. if(n%2==0)
  9. cout<<n<<" este par";
  10. else
  11. cout<<n<<" este impar";
  12. return 0;
  13. }
  14.  
  15. 105.
  16. #include <iostream>
  17.  
  18. using namespace std;
  19.  
  20. int main()
  21. {
  22. int a,b;
  23. cin>>a;
  24. cin>>b;
  25. if(a>b)
  26. cout<<a;
  27. else
  28. cout<<b;
  29. return 0;
  30. }
  31.  
  32.  
  33. 816.
  34. #include <iostream>
  35. using namespace std;
  36.  
  37. int main()
  38. {
  39. int x, y;
  40. cin >> x >> y;
  41. cout << ((y % x) ? (y / x + 1) : (y / x));
  42. }
  43.  
  44. 832. #include <iostream>
  45.  
  46. using namespace std;
  47.  
  48. int main()
  49. {
  50. int n;
  51. cin>>n;
  52. if(n<5) cout<<"corigent";
  53. else cout<<"promovat";
  54. }
  55.  
  56.  
  57. 1362.
  58. #include <iostream>
  59. #include <cmath>
  60. using namespace std;
  61. int main ()
  62. {
  63. int n,i;
  64. cin>>n;
  65. cout<<1;
  66. for(i=1;i<=n;i++)
  67. cout<<0;
  68. return 0;
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement