Suva Programming
Blog about C++ and other programming source code.
Pages
Home
Privacy Policy
Disclaimer
Monday 10 February 2020
CPP program to print the input numbers in an array
Source Code:
#include<iostream>
using namespace std;
int main()
{
int n[10];
cout<<"Enter the numbers: ";
for(int i=1;i<=10;i++)
{
cin>>n[i];
}
cout<<"The numbers are: ";
for(int i=1;i<=10;i++)
{
cout<<n[i]<<endl;
}
return 0;
}
Program Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment