Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #72.8K
2 Posted Topics
Re: 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. | |
Re: 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); getch(); } |
The End.