Jump to content

Search the Community

Showing results for tags 'cifre impare'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Keyplex General
    • Anunţuri și Noutăţi
    • Discuţii
    • Ajutor
    • Artă și Fotografie
    • Prezentări
    • Aplicatii
  • Keyplex Info
    • Învățarea Bazelor
    • Probleme Rezolvate
    • Întrebări Informatică
  • Keyplex Gaming
    • CS:GO
    • Tom Clancy's Ghost Recon Wildlands
    • League of Legends
    • Rust
    • Warframe
  • KEYPLEX CONTENT CREATOR
    • Andrei Sym
    • Silviu Nicolae
    • The Striker
  • ad litteram's Sorin cauta prietena
  • Keyplex Development Branch PB's Beta

Blogs

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


In Game Name


Location


Discord

Found 1 result

  1. 1. Cerinta: Se dă un număr n de la tastatură. Sa se afiseze cel mai mare numar format din cifre impare - Exemplu: n=3 24 11 27 Maximul este=27 2. Rezolvare: #include <iostream> using namespace std; int main() { int n,nr,max1,x,i,ok,c,y; cin>>n; cout<<"n="; max1=-1; for(i=1;i<=n;i++) { cin>>x; ok=1; y=x; while(y!=0) { c=y%10; y=y/10; } if(ok==1) if(x>max1) max1=x; } if(max1==-1) cout<<"nu am citit nr. cu cifre impare"; else cout<<"Maximul este="<<max1; return 0; }
×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.