i was try to make some c++ program using array 1 dimention but i really confused. i'd try to make some program who input 1, 2, 3, 4 and 5 but in the last, the output will be 2, 3, 4, 5 and 1. can someone help me, please?
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int data[5];
int i, j, tmp;
for(i=0; i<5; i++)
{
cout<<"Enter 5 Number Value: "<<(i+1)<<" : ";
cin>>data[i];
}
#include<iostream>
#include<conio.h>
#include<algorithm>
swap(data[0], data[4]);
using namespace std;
int main()
{
int data[5];
int i, j, tmp;
for(i=0; i<5; i++)
{
cout<<"Enter 5 Number Value: "<<(i+1)<<" : ";
cin>>data[i];
}