You are on page 1of 1

Dietel and Dietel Exercise Solution 2.

31
============================================
#include<conio.h>
#include<iostream.h>
void main()
{
// clrscr();
int value=8;
int count=0;
for(int i=1;i<=value;i++)
{
for(int j=1;j<=value;j++)
{
if((i%2)==0&&count==0)
{
cout<<" ";
count++;
}
cout<<"* ";
}
cout<<endl;
count=0;
}
getch();
}

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006