Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- int asd7as9d9asd6sa78d6a87d(int *tab, int n){
- for(int i=0; i<n; i++){
- system("cls");
- cout << "Podaj wartosc: ";
- cin >> tab[i];
- }
- }
- int hgf6h8f7g5h67gf4h6gf3hf6(int *tab, int n){
- system("cls");
- for(int i=0; i<n; i++){
- cout << "Wartosc: " << tab[i] << endl;
- }
- }
- int zxc667zx4czx36czxc(int *tab, int n){
- int xzczx0xzczx8cuad8as87d5 = 0;
- for(int i=0; i<n-1; i++){
- if(tab[i] > tab[i+1]){
- xzczx0xzczx8cuad8as87d5 = tab[i];
- }
- }
- cout << xzczx0xzczx8cuad8as87d5 << endl;
- }
- int main(){
- int rozmafsadasdasfdasgiar;
- cout << "Podaj rozmar: ";
- cin >> rozmafsadasdasfdasgiar;
- int * tab = new int[rozmafsadasdasfdasgiar];
- asd7as9d9asd6sa78d6a87d(tab,rozmafsadasdasfdasgiar);
- hgf6h8f7g5h67gf4h6gf3hf6(tab,rozmafsadasdasfdasgiar);
- zxc667zx4czx36czxc(tab,rozmafsadasdasfdasgiar);
- delete [] tab;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement