Array C++

How To Fill and Display Array Using Functions C++

Hi,Today we make program About Array Using Functions C++.You Can Make More Simple With your Mind.Now Try To make it.

Also don’t miss some of the other Code : 

#How To Find The Factorial of a Number using C++ Program

#How To Calculate volume of a cylinder with user input in c++ Program

#How To Convert Celsius to Fahrenheit Conversion in C++ Program

#How To Shut Down Computer using C++ Program

Array Using Functions C++

#include<iostream>
#include<conio.h>
using namespace std;
const int n=9;
int GA[n];
void fillarray(void){
const int n=9;
int A[n];

int i=0;
while(i<=9){

cout<<"value of element"<<i<<"?"<<endl;
cin>>A[i];

GA[i]=A[i];
i++;

}

}
void displayarray(void){

for(int i=0;i<=9;i++){
cout<<GA[i]<<endl;
}
}

int main()
{
fillarray();
displayarray();
getch();

}

#How To Find Maximum Number using C++ Program
Output of ProgramHow To Fill and Display Array Using Functions C++

Also Read :-

#How To Calculate the Sum of first 1000 integers in C++ Program

#How To Make Simple Calculator using C++ Program

#How To Calculate Area of Triangle with given three sides in C++ Program

#How To Convert Kilograms in Grams using C++ Program