View Single Post
  #1  
Old 23-08-2008, 08:38 PM
.BZU.'s Avatar
.BZU. .BZU. is offline


 
Join Date: Sep 2007
Location: near Govt College of Science Multan Pakistan
Posts: 9,693
Contact Number: Removed
Program / Discipline: BSIT
Class Roll Number: 07-15
.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute
Smile Make stars using C++ loops and if statment

Here is the Home work for making start using C++

Name:  stars ptnt.JPG
Views: 1300
Size:  7.1 KB
PHP Code:

#include <iostream>
using namespace std;
int counter=1;
int m=1;
int n,j,o;
int main()
{

    for(
n=9;n>=1;n--)
    {
        for (
j=5;j>=counter;j--)
        {
        
cout<<"*";
        }
        


        if(
counter>5)

            {
                for (
o=0;o<=m;o++)

                {
                    
cout<<"*";
        
                }
                
m++;

            }

        
counter++;
        

    
cout<<endl;
    }


return 
0;


__________________
(¯`v´¯)
`*.¸.*`

¸.*´¸.*´¨) ¸.*´¨)
(¸.*´ (¸.
Bzu Forum

Don't cry because it's over, smile because it happened
Reply With Quote