first two i have done but 3rd 4th and 5th one i cant make bcoz i m new student in c++ so plz what can i do ?? use one loop and give reslut i cant do with one loop plz tel me how can i do???????????
You can do the 3rd by adding together the code for the 1st and 2nd, extend the loop and put an if statement in. Or loop from -X to +X and take the absolute value. The 4th should follow easily from the 2nd, and the 5th from the 1st: whatever you do to display a line, just do it twice. Post your code for 1st and 2nd if you're still stuck.