Others
Maths Puzzle
wap that takes array of integers representing the heights of the trees in the rows as input and prints the list of the visible trees
Read Solution (Total 2)
-
- #include // std::cout, std::end
using namespace std;
int main () {
int a[]={3,2,3,4,7,4,5,32,4,6,5,2,3,6,7,34};
int max=a[0],i;
cout - 9 years agoHelpfull: Yes(0) No(2)
- #include
using namespace std;
int main()
{
int n,k=0;
cin>>n;
int a[n];
while(k>a[k++];
int ch[n];
for(int i=0;i - 6 years agoHelpfull: Yes(0) No(1)
Others Other Question