using for loop print as below:
Enter a value:5
1
* 2
1 * 3
* 2 * 4
1 * 3 * 5
What is the logic behind this???
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit Kumar SinghRank #562 · 4.3K reputationPosted Feb 16, 2016, 6:14 AM EST
Sandeep NeelaRank #5,790 · 286 reputationPosted Feb 16, 2016, 6:27 AM EST
Amit Kumar SinghRank #562 · 4.3K reputationPosted Feb 16, 2016, 7:11 AM EST
Amit Kumar SinghRank #562 · 4.3K reputationPosted Feb 16, 2016, 6:38 AM EST
Sandeep NeelaRank #5,790 · 286 reputationPosted Feb 16, 2016, 6:41 AM EST
Y G173 reputationPosted Feb 16, 2016, 7:08 AM EST
Y G173 reputationPosted Feb 16, 2016, 7:09 AM EST