Top 10 Programming Puzzles

  1. Add two numbers without using the addition operator
  2. Print all numbers between 1 to N without using a semicolon
  3. Swap two numbers without using a third variable
  4. Determine the if condition to print the specific output
  5. Find maximum and minimum value of a triplet without using a conditional statement
  6. Print “Hello World” with empty main function
  7. Print all numbers between 1 to N without using any loop
  8. Print a semicolon without using a semicolon anywhere in the program
  9. Multiply two numbers without using a multiplication operator or loops
  10. Find the square of a number without using the multiplication and division operator

Rate this post

Average rating 4.81/5. Vote count: 52

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Tell us how we can improve this post?

Thanks for reading.

To share your code in the comments, please use our online compiler that supports C, C++, Java, Python, JavaScript, C#, PHP, and many more popular programming languages.

Like us? Refer us to your friends and support our growth. Happy coding :)


guest
0 Comments
Inline Feedbacks
View all comments
Do NOT follow this link or you will be banned from the site!