BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan Right Header

Register FAQ Community Calendar New Posts Navbar Right Corner
HOME BZU Mail Box Online Games Radio and TV Cricket All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan > Institute of Computing > Bachelor of Science in Information Technology > BsIT 3rd Semester > Object Oriented Programming

Object Oriented Programming By Mam Sidra Malik


Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 23-08-2008, 08:38 PM
.BZU.'s Avatar


 
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: 1299
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
Reply

Tags
loops, make, stars, statment


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lesson 3: Loops bonfire Introduction to Computing 0 26-02-2011 10:21 PM
Hollywood/Bollywood stars now and then .BZU. ShowBiz 1 25-08-2008 12:54 AM
Table of 5-10 Using Nested Loops BSIT07-01 Computer programming for IT 6 25-04-2008 08:21 AM
Loops & switches BSIT07-01 Web Development 1 21-01-2008 02:38 PM

Best view in Firefox
Almuslimeen.info | BZU Multan | Dedicated server hosting
Note: All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.

All times are GMT +5. The time now is 01:08 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.