I simple multiplication table that I wrote using Modern C++ approach.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details. If you want to advertise on my website, kindly contact me also at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
// multiplication_table.cpp
// Jake Rodriguez Pomperada, MAED-IT,MIT
// www.jakerpomperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines.
#include <iostream>
#include <iomanip>
#include <string>
int main()
{
const std::string line(60, '-');
std::cout <<"\n";
std::cout << line << "\n";
std::cout << "\t\tMULTIPLICATION TABLE IN MODERN C++" << "\n";
std::cout << line << "\n";
for (int a = 1; a < 13; ++a)
{
for (int n = 1; n < 13; ++n)
{
std::cout << std::setw(4) << a*n << ' ';
}
std::cout << "\n";
}
std::cout << line << "\n";
}
No comments:
Post a Comment