QUOTE(SPS @ 19 Jan, 2008 - 03:46 AM)

dude...i dont know how to use the loops properly to get the design.....its pretty confusing...please help
Surely anyone who assigned this to you would have explained loops? If you really need a explanation, loops are ubiquitous, there are probably millions of examples in google.
Just in case google, somehow, isn't working for you, this is how a loop works:
CODE
#include <iostream>
using namespace std;
int main () {
// this says, initialize a variable named i
// and assign it the value of 1
// if the value currently in i is less than 5, keep going
// once the code in this block is executed, increment i by one
// keep executing the code in the block until i fails the test, i<5
for(int i=1; i<5; i++) {
// print the current value of i, and a space
cout << i << " ";
}
// print a new line
cout << endl;
return 0;
}
// produces the following output:
//1 2 3 4
Hope this helps.