Search Results

Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: muraliaa
Forum: C++ Sep 16th, 2008
Replies: 8
Views: 2,830
Posted By muraliaa
Your program is write up to if(m==n)

in the above program n will become zero
after the loop. So assign n value to any other variable,then compare with m.
Forum: C++ Aug 13th, 2008
Replies: 4
Views: 4,649
Posted By muraliaa
void main()
{int n=1,i=0;
clrscr();
while(i<1500)
{ n++;
if(n%2==0||n%3==0||n%5==0)
i++;

}
printf("%d",n);
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC