Sir, I’m unable to find the problem in this code.
https://online.codingblocks.com/app/player/38447/content/18934/4821
Sir, I’m unable to find the problem in this code.
https://online.codingblocks.com/app/player/38447/content/18934/4821
Copy your code in online ide and share the link. The above link is not accessible to me.
This is the online ide link
For the given sample input
Your Output:
1,2 and 7
1,3 and 6
1,4 and 5
2,3 and 5
Correct output:
1, 2 and 7
1, 3 and 6
1, 4 and 5
2, 3 and 5
You have to print a space after the comma as well.
Check the comments in the above code