Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
#18
#include <iostream> #include <ctime> using namespace std; int main() { int tablica[999]; int licznik = 0; unsigned int suma = 0; srand(time(NULL)); do { tablica[licznik] = (rand()%7)+4; cout << tablica[licznik] << endl; suma += tablica[licznik]; licznik++; } while (licznik < 999); cout << "Suma wszystkich liczb, to: " << suma; return 0; }
run
|
edit
|
history
|
help
0
vaska
Union and possible undefined behavior
cv2
thread-destructor
zero size std::array parameter
binary
Code
Hangman
Wide string conversion with multibyte chars and locale
hangman