#include <iostream>
using namespace std;
int main()
{
//variables
int person1=0;
int person2=0;
int person3=0;
int person4=0;
int person5=0;
int person6=0;
int person7=0;
int person8=0;
int person9=0;
int person10=0;
//output message
cout<<"Enter the number of pancakes eaten by 10 different people."<<endl;
//create a list of the people
cin>>person1;
cin>>person2;
cin>>person3;
cin>>person4;
cin>>person5;
cin>>person6;
cin>>person7;
cin>>person8;
cin>>person9;
cin>>person10;
//make program analyze the data and output who ate the most pancakes
if(person1>person2&&person3&&person4&&person5&&person6&&person7&&person8&&person9&&person10)
{
cout<<"Person 1 ate the most pancakes."<<endl;
}
else if (person2>person3&&person4&&person5&&person6&&person7&&person8&&person9&&person10)
{
cout<<"Person 2 ate the most pancakes."<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewoKCi8vdmFyaWFibGVzCmludCBwZXJzb24xPTA7CmludCBwZXJzb24yPTA7CmludCBwZXJzb24zPTA7CmludCBwZXJzb240PTA7CmludCBwZXJzb241PTA7CmludCBwZXJzb242PTA7CmludCBwZXJzb243PTA7CmludCBwZXJzb244PTA7CmludCBwZXJzb245PTA7CmludCBwZXJzb24xMD0wOwovL291dHB1dCBtZXNzYWdlCiBjb3V0PDwiRW50ZXIgdGhlIG51bWJlciBvZiBwYW5jYWtlcyBlYXRlbiBieSAxMCBkaWZmZXJlbnQgcGVvcGxlLiI8PGVuZGw7CgovL2NyZWF0ZSBhIGxpc3Qgb2YgdGhlIHBlb3BsZQpjaW4+PnBlcnNvbjE7CmNpbj4+cGVyc29uMjsKY2luPj5wZXJzb24zOwpjaW4+PnBlcnNvbjQ7CmNpbj4+cGVyc29uNTsKY2luPj5wZXJzb242OwpjaW4+PnBlcnNvbjc7CmNpbj4+cGVyc29uODsKY2luPj5wZXJzb245OwpjaW4+PnBlcnNvbjEwOwoKLy9tYWtlIHByb2dyYW0gYW5hbHl6ZSB0aGUgZGF0YSBhbmQgb3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