English
Open in Telegram

ThreadMessage #7965

15 messages · –
        1. K
          shunaqa demaysin hozi tashliman kodini
  1. K
    davomi yuqmi faqat musbatligini aniqlasa buldimi??
  2. D
    # include <iostream> using namespace std; int main () { int N,K,L=0,max,imax; cout<<"N="; cin>>N; cout<<"K="; cin>>K; int X[N],Y[K],Z[L]; for(int i=0; i<N; i++) { cin>>X[i]; } for(int i=0; i<N; i++) { if(X[i]>0) { Z[L]=X[i]; L++; } } for(int r=0; r<K; r++) { cin>>Y[r]; } for(int r=0; r<K; r++) { if(Y[r]>0) { Z[L]=Y[r]; L++; } } for(int j=0; j<L; j++) cout<<"Z["<<j<<"]="<<Z[j]<<endl; max=Z[0]; imax=0; for(int j=1; j<L; j++) { if(Z[j]>max) { max=Z[j]; imax=j; } } cout<<"max="<<max<<endl; cout<<"indeks="<<imax<<endl; return 0; }
CC++ vs PythonC++ vs Python@cpp_vs_python · group · Tech
114members39 409messages in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count