0
How do l print array of numbers in C++
C++
4 odpowiedzi
+ 4
#include<iostream>
using namespace std;
int main(){
int arr[5]={0,1,2,3,4};
for(int index=0;index<5;index++)
{
cout<<arr[index];
}
return 0;
}
+ 3
Manav Roy oh yeah...😅
+ 2
#include <iostream>
int main(){
int a[]={7, 6, 8};
for (int i:a){
std::cout<<i<<std::endl;
}
return 0;
}
+ 2
Manav Roy or by learning how to google 😂