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

7th May 2018, 10:11 PM
Nour Salh
Nour Salh - avatar
1 Resposta
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--) }
7th May 2018, 10:29 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar