Saturday, September 24, 2016
C Language Multiplication Table by using While Loop
C Language Multiplication Table by using While Loop
Creating Multiplication Table from 1 up 12 in C++ Programming Language. C++ Language it will always do what you want it to do with your own terms and declaration. Now Here is just simple code to create Multiplication Table with C++ Program. This Tutorial for the C++ Beginners
Basic Needs
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int table=12;
int column_number;
int row_number=1;
while (row_number <=table)
{
column_number =1;
while(column_number <=table)
{
cout << row_number *column_number << " ";
column_number ++;
}
cout << " ";
row_number ++;
}
cout << endl;
cout << "This table was Designed to Multiply from 1 up to,"<< table << endl;
return 0;
}
Basic Needs
- Operators
- Declaration of Data type
- While Loop
- Header [<iostream>, <iomanip>
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int table=12;
int column_number;
int row_number=1;
while (row_number <=table)
{
column_number =1;
while(column_number <=table)
{
cout << row_number *column_number << " ";
column_number ++;
}
cout << " ";
row_number ++;
}
cout << endl;
cout << "This table was Designed to Multiply from 1 up to,"<< table << endl;
return 0;
}
Any Question or fail to understand Leave a Comment Below
If you like to share your own code about Creating Multiplication Table in C++, you can leave it through the comment Box Below.
Available link for download