Thursday, July 28, 2022

Numerical Table in C++

 A sample program to generate numerical table in C++ programming language. The code works with C++ 11 Standard and Higher Version.

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 in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

/*

Write a program that displays the following table:


p       p*5  p*10


5       25     50


10     50     100


25     125   250


50    250   500


Use C++ 11 or Higher in running this program

*/


#include <iostream>


int main()

{


    std::cout <<"\n\n";

    std::cout << "Numerical Table in C++\n\n";


std::cout << "p\tp*5\tp*10\n\n";



  for(int p : {5, 10, 25, 50})

    std::cout << p << '\t' << p * 5 << '\t' << p * 10 << '\n';

}


No comments:

Post a Comment