Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

break statement in C++

#include<iostream>
using namespace std;
int main()
{
    int a[10]={1,2,3,4,5,6,7,8,9,10};
        cout<<"first five elements in the given array:\n";
        for(int i=0;i<10;i++)
        {
            if(a[i]<=5)
        {
            cout<<a[i]<<"\n";
        }
            else
                break;
        
        }
}