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.

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

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;
}

what is the number of cats?

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

can any one elaborate que.