Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: new funny algorithms #1327

Closed
wants to merge 8 commits into from
Closed

Conversation

divyansh-soni1
Copy link

solves #9

This code initializes an array of jokes and then selects a random joke to display when you run the program. It uses the std::rand() function to generate a random index for the joke array and then displays the selected joke. Each time you run the program, you'll get a different joke.

Feel free to add more jokes to the jokes vector for even more variety!
This program prints a simple star pattern based on the number of rows entered by the user.

Feel free to experiment with and modify these algorithms to make them even more entertaining or interesting!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant