Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int w,max=0,placer=0;
- cout<<"podaj wielkosc tablicy"<<endl;
- cin>>w;
- int T[w];
- cout <<endl<<"wproadz zawartosc tablicy"<<endl;
- for(int v=0;v<w;v++){
- cin>>T[v];
- cout<<endl<<"wprowadz zawartosc tablicy"
- }
- max = T[0];
- for(int i=1;i<w,i++){
- if(T[i]>max)
- max=T[i];
- }
- cout<<endl<<"najwieksza liczba to:"<<max;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement