#include <iostream>
using namespace std;
int main() {
int arr[5]; //number of elements in []
arr[0]=5; //giving each array its own value
arr[1]=4;
arr[2]=3;
arr[3]=2;
arr[4]=1;
arr[5]=0;
for(int i = 0 ; i <=5 ; i++ ){ //printing using loops
cout<<arr[i]<<endl;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: