karanv 0
Newbie Poster
Recommended Answers
Jump to Postyou can use for loop
Jump to Postcreate two for loops. The outside loop should iterate but the inner loop should loop only once. And in the inner loop you can write if statements.
Example:for(/*loop till n number of lines*/){ for(/*loop only once*/){ if(i==0){ cout << " * "; } //so on } …
All 7 Replies
karanv 0
Newbie Poster
karanv 0
Newbie Poster
kal_crazy 13
Junior Poster
karanv 0
Newbie Poster
kal_crazy 13
Junior Poster
Learner010 99
Posting Whiz in Training
karanv 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.