A very simple code that I have created to demonstrate how to use and declare one dimensional array using C++
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 in my website kindly contact me also in my email address also. Thank you.
I am currently accepting programming work, it project, school
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 in my website kindly contact me also in my email address also. Thank you.
My email address are 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.
My personal website is http://www.jakerpomperada.com
My personal website is http://www.jakerpomperada.com
Sample Program Output
Program Listing
// example_one.cpp
// Author : Mr. Jake R. Pomperada,BSCS,MAED-IT
// Date : August 27, 2018 Monday 7:43 AM
// Location : Bacolod City, Negros Occidental Philippines.
// Website : http://www.jakerpomperada.com
// Email : jakerpomperada@jakerpomperada.com and jakerpomperada@gmail.com
#include <iostream>
using namespace std;
int main()
{
int score[5] = {5,10,15,20,25};
int a=0;
cout <<"\n\n";
cout <<"\tOne Dimensional Array Demonstration";
cout <<"\n\n";
for(a=0; a<5; a++)
{
cout<<"\tscore["<<a+1<<"] = "<<score[a]<<"\n";
}
cout <<"\n\n";
system("pause");
}
No comments:
Post a Comment