Cats Eats Mice

A number of Cats got together and decided to kill between them 999999 mice. Every cat killed equal number of mice. Write a program in C to find number of cats.

what is the number of cats?

@roman : That’s what you need to find according to him :stuck_out_tongue:

Well, I don’t know about others, but my cat can kill all of them at once. Hence, for me Ans=1 :wink:

1 Like

can any one elaborate que.

http://ideone.com/7HhCHF

//http://dictionary.cambridge.org/dictionary/british/play-cat-and-mouse
#include <iostream>
#include <cstdio>
using namespace std;

int main() {
	int mice, cats, flag;
	mice=999999;
	cats=0;
	string s="play cat and mouse";
	while(s=="play cat and mouse" && flag==0) {
		if(mice==0) {
			flag=1;
			break;
		}
		mice--;
		cats++;
	}
	printf("Pussy pussy cats: %d", cats);
	return 0;
}
//