0
I a condition for c program to print reverse array BUT
Hi guys... I need help please I need condition if... to print n elements in array reverse BUT WHEN I INPUT NEGATIVE NUMBER ends inputs and output in revese order
1 ответ
0
just put
int a;
cin>>a;
if(a>0){
for(int i = 0; i<= sizeof(array)/sizeof(int); i++)
}
else
{
for(int i = sizeof(array)/sizeof(int); i>=0; i--)
}