Friday, October 11, 2019

Print Number Given By the User in C++

In this article, I will discuss how to create a simple program to as the user to give a number and then the program will print a number given by the user on the screen using C++ as my programming language.

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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

// print_number.cpp
// This program will print the given number by the user.
// Author : Jake Rodriguez Pomperada,MAED-IT
// Date   : October 8, 2019  8:22 PM Tuesday
// Website : http://www.jakerpomperada.com

#include <iostream>

using namespace std;


int main()
{
int val_num=0;
cout <<"\n";
cout <<"\tPrint Number Given By the User";
cout <<"\n\n";
cout <<"\tEnter a Number : ";
cin >> val_num;
cout <<"\n";
cout <<"\tYou entered " << val_num <<".";
cout <<"\n\n";
cout <<"\tEnd of the Program";
}


No comments:

Post a Comment