C++ For Loop_1.6

#include 
using namespace std;
int main (void)
{
    int i;
    freopen("out.txt","w",stdout);
    for(i=1;i<=14;i++)
    {
       if(i%2==1)
       cout<<"\\";
       else
       cout<<"/";
    }
}


The Output is Given Below:
\/\/\/\/\/\/\/

0 comments:

Post a Comment