Thu Apr 05, 2007 9:06 pm
#include
using namespace std;
int main()
{
int n,sides,i;
char choise;
coutn">n;
for(i=1;n>0;i++)
n=n-i;
if(n==0)
{
sides=4*(i-1);
cout>n;
if(n==1)
{
for(int m=0;m>choise;
}while(choise=='y'||choise=='Y');
cout">choise;
return 0;
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.