array elements in C++ programming.Hi,Today we Try to make program how to fill the array of five elements.Now Try To make it.
Fill The Array of Five Elements in C++ Program
#include<iostream> #include<conio.h> using namespace std; main() { int A[5]; int r; for(r=0;r<5;r++) { cout<<"Enter the value:"; cin>>A[r]; } getch(); }
Output of Program
Enter 5 numbers: 3 4 5 4 2 Sum = 18