This is a part of my code for an array.
for(i=2;i<n;i++)
{
if(a[i] != 0)
{
cout<<a[i]<<" ";
}
} cout<<endl;
Type: Posts; User: Candace
This is a part of my code for an array.
for(i=2;i<n;i++)
{
if(a[i] != 0)
{
cout<<a[i]<<" ";
}
} cout<<endl;
thanks! got it
I keep getting this compiling error
a function-definition is not allowed here before â{â token
#include <iostream>
#include <cstdlib>
using namespace std;