
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

#include <iostream.h> #include <conio.h> void main() { clrscr(); // clear screen (Turbo C++ specific) int a[10], i; cout << "Enter 10 numbers:\n"; for (i = 0; i < 10; i++) { cin >> a[i]; } cout << "\nYou entered:\n"; for (i = 0; i < 10; i++) { cout << "a[" << i << "] = " << a[i] << "\n"; } getch(); // wait for key press before exit }