Strona główna > Ciągi > Suma „n” kolejnych liczb naturalnych

Suma „n” kolejnych liczb naturalnych

8 Październik 2009 Dodaj komentarz Go to comments

# include <iostream>

# include <cmath>

using namespace std;

int main ()


int i, s=0, a, n;

cout<<„Program oblicza sume n-kolejnych liczb\n”;

cout<<„Podaj pierwsza liczbe…”<<endl;


cout<<„Ile liczb mam sumowac…?”<<endl;


for (i=0; i<n; i=i+1)


cout<<„Suma liczb = „<<s<<endl;

char c;

cin>> c;


  1. 4 Marzec 2014 o 7:34 am

    Remarkable! Its really remarkable post, I have got much clear idea on the topic of from this post.

  2. 26 Czerwiec 2014 o 4:42 am

    The swifter it is easy to whip up a triple scoop of anything, the better your score may be.
    Gail Leino gives her two cents worth on fashion and entertaining.

    For the most part a Brunch may be the perfect time for having a variety of interactive games and
    printable activities for everyone to play.

  3. 14 Listopad 2014 o 2:00 am

    Hurrah! Finally I got a blog from where I be able to in fact take helpful facts regarding my study and knowledge.

  4. 13 Marzec 2016 o 3:31 am

    It’s fantastic that you are getting thoughts from this paragraph as well as from
    our discussion made at this place.

  5. 21 Maj 2016 o 12:53 pm

    The steed is not being malicious by any means, he is just terrified out of his wits
    and also it is your job to aim to continue to be as calm
    as possible as you aim to gain back control of the scenario.

  6. 19 Luty 2017 o 10:35 pm

    This post presents clear idea designed for the new people of blogging, that
    truly how to do blogging.

  1. 17 Lipiec 2016 o 8:04 am
  2. 3 Styczeń 2017 o 9:11 pm


Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:


Komentujesz korzystając z konta Log Out / Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Log Out / Zmień )

Facebook photo

Komentujesz korzystając z konta Facebook. Log Out / Zmień )

Google+ photo

Komentujesz korzystając z konta Google+. Log Out / Zmień )

Connecting to %s

%d bloggers like this: