0% found this document useful (0 votes)
31 views2 pages

PROGRAME8

This C++ program allows a user to enter 10 integer elements into an array. It then prints out the array to display the 10 entered elements. The program uses for loops to accept input from the user to fill the array, and then another for loop to output each element of the array individually.

Uploaded by

harry221992
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views2 pages

PROGRAME8

This C++ program allows a user to enter 10 integer elements into an array. It then prints out the array to display the 10 entered elements. The program uses for loops to accept input from the user to fill the array, and then another for loop to output each element of the array individually.

Uploaded by

harry221992
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PROGRAME-8

TASK-WAP to print values of array containing 10 elements

PURPOSE- By implementing this program we are capable to print out array of ten
elements entered by user.

#include<iostream.h>

#include<conio.h>

int main()

int array[10];

cout<<"enter 10 no.:";

for(int i=0;i<=9;i++)

cin>>array[i];

cout<<"array elements are"<<endl;

for(int i=0;i<=9;i++)

cout<<array[i]<<endl;

getch();

}
OUTPUT-

You might also like