Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- float liczby[5];
- float suma=0;
- int i=0;
- cout << "Podaj 5 liczb rozdzielone spacja: ";
- do
- {
- cin >> liczby[i];
- i++;
- }
- while (i<5);
- for (i; i<5; i++)
- {
- suma+=liczby[i];
- }
- cout << suma;
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement