Viewing code of EX1_8AR
// ------ EX1_8AR.CPP --------------
//--- Programmed By Rajesh -----

/* Kathmandu University
Q.no. 8.a
End semester 2001 (Regular)
Q: Print the integer from 1 to 50 which are divisible by 2 and 3 using
while loop. Print only five integers per line


*/


#include<stdio.h>
#include<conio.h>
void main()
{
int i=0,count=0;
int no = 50;
clrscr();
while(i<no)
{
if(i%2==0 && i%3 ==0)
{
count++;
printf("%d ",i);
if(count%5 ==0)
printf("\n");

}
i++;
}
getch();
}