
17-04-2008, 10:22 AM
|
 | 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 | |
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;
}
| |