Preview:
#include <iostream>

using namespace std;



int main(){
  int arr[10]={1};
  int n=10;
  for(int i=0;i<n;i++){
   if (arr[i]>0)
   {
      cout<<arr[i]<<endl;
   }
   if (arr[i]<=0)
   {
      int b=arr[i] | 1 ;
      cout<<b<<endl;
   }
   
   
   
  }

}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter