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

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 2nd Semester > BSIT07-11 2nd > Computer programming for IT

Computer programming for IT Sir Aziz Akhtar


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 17-04-2008, 10:20 AM
shmsa's Avatar
Grown up punk

 
Join Date: Oct 2007
Location: Muslim Town Multan
Posts: 195
Contact Number: 0322-6196713
Program / Discipline: BSIT
Class Roll Number: 07-22
shmsa is a jewel in the roughshmsa is a jewel in the roughshmsa is a jewel in the roughshmsa is a jewel in the rough
lectures While Loop Table

Table of 2 Using While loop
Quote:
#include <iostream>
using namespace std;
int main()
{
int n;
n=1;
while (n<=10)
{
cout<<"2 X "<<n<<"="<<2*n<<endl;
n++;
}
return 0;
}

Reply With Quote
  #2  
Old 17-04-2008, 10:22 AM
shmsa's Avatar
Grown up punk

 
Join Date: Oct 2007
Location: Muslim Town Multan
Posts: 195
Contact Number: 0322-6196713
Program / Discipline: BSIT
Class Roll Number: 07-22
shmsa is a jewel in the roughshmsa is a jewel in the roughshmsa is a jewel in the roughshmsa is a jewel in the rough
lectures Re: While Loop Table

General Table Code Using While Loop
Quote:
#include <iostream>
using namespace std;
int main()
{
int tableof,number;
cout<<"Table of "<<endl;
cin>>tableof;
number=1;
while (number<=10)
{ cout<<tableof<<"*"<<number<<"="<<tableof*number<<e ndl;
number++;
}
return 0;
}

Reply With Quote
Reply

Tags
loop, table


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

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Binary Table 01 Geeky Table .BZU. Designed Pictures 0 28-04-2011 05:10 AM
Presentation:Torque on a current loop By Wasif and Sheraz Group1 (Part3) .BZU. Electromagnetism 1 06-12-2008 01:11 AM
Time Table of BSIT 3rd BSIT07-01 BsIT 3rd Semester 1 02-11-2008 11:18 PM
Table of 5-10 Using Nested Loops BSIT07-01 Computer programming for IT 6 25-04-2008 08:21 AM
Table That I have done in Class BSIT07-01 Web Development 0 18-12-2007 03:46 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 12:50 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.