Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int asd7as9d9asd6sa78d6a87d(int *tab, int n){
  7. for(int i=0; i<n; i++){
  8. system("cls");
  9. cout << "Podaj wartosc: ";
  10. cin >> tab[i];
  11. }
  12. }
  13.  
  14. int hgf6h8f7g5h67gf4h6gf3hf6(int *tab, int n){
  15. system("cls");
  16. for(int i=0; i<n; i++){
  17. cout << "Wartosc: " << tab[i] << endl;
  18. }
  19. }
  20.  
  21. int zxc667zx4czx36czxc(int *tab, int n){
  22. int xzczx0xzczx8cuad8as87d5 = 0;
  23. for(int i=0; i<n-1; i++){
  24. if(tab[i] > tab[i+1]){
  25. xzczx0xzczx8cuad8as87d5 = tab[i];
  26. }
  27. }
  28. cout << xzczx0xzczx8cuad8as87d5 << endl;
  29. }
  30.  
  31. int main(){
  32. int rozmafsadasdasfdasgiar;
  33. cout << "Podaj rozmar: ";
  34. cin >> rozmafsadasdasfdasgiar;
  35. int * tab = new int[rozmafsadasdasfdasgiar];
  36. asd7as9d9asd6sa78d6a87d(tab,rozmafsadasdasfdasgiar);
  37. hgf6h8f7g5h67gf4h6gf3hf6(tab,rozmafsadasdasfdasgiar);
  38. zxc667zx4czx36czxc(tab,rozmafsadasdasfdasgiar);
  39. delete [] tab;
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement