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
    • Artă și Fotografie
    • Discuţii
    • Prezentări
    • Aplicatii
    • Ajutor
  • Keyplex Gaming
    • Fortnite
    • League of Legends
    • Warframe
    • CS:GO
    • Rust
    • Tom Clancy's Ghost Recon Wildlands
    • Ajutor
  • Keyplex Info
    • Probleme Rezolvate
    • Întrebări Informatică
  • Keyplex Content Creator
    • Andrei Sym
  • ad litteram's Sorin cauta prietena

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


About Me


In Game Name


Location


Joc Preferat


Discord

Found 1 result

  1. 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; }
×
×
  • Create New...

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.