{
Static void Main(string[] args)
{
//int men, women, children;
for(int man = 0; man & lt20; man++)
{
for(int woman = 0; Woman & lt= 25; Woman++)
{
for(int kids = 0; Children < = 50; kids++)
{
Int sum = man+woman+child;
Int money = 3 * men+2 * women+children;
if(sum = = 30 & amp; & money == 50)
{
Stringsmsg = string.format ("Number of males: {0}, number of females: {1}, number of children {2}", men, women, children);
Console. WriteLine(msg `);
}
}
}
}
Console. read key();
}
}