Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main(int ile, char *argumenty[])
- {
- double suma = 0;
- for (int i = 1; i < ile; i++)
- {
- suma += atof(argumenty[i]);
- }
- cout << endl << "Podales " << ile - 1 << " liczb" << endl;
- cout << "Suma podanych liczb to: " << suma << endl << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement