Jump to content

Search the Community

Showing results for tags 'suma_cifrelor'.



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. Keyloren

    Suma Cifrelor

    1. Cerinta: Să se scrie o funcție C++ care să returneze suma cifrelor unui număr natural transmis ca parametru. - Exemplu: sumcif(241) = 7 2. Rezolvare: #include <iostream> using namespace std; int sumcif(int n) { int s = 0, m = n, ult; while (n != 0) { ult = n % 10; s = s + ult; n = n / 10; } return s; } int main() { int n; cin >> n; cout<<sumcif(n); system("Pause"); 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.