i ll tell u the logic to be used: for the to be odd, it shudnt be divisible by 2 and to be positive no. , it has to be greater than 0; now try making the program.. and mail us... if it still give errors...
--- On Fri, 11/14/08, Brett McCoy <[EMAIL PROTECTED]> wrote: > From: Brett McCoy <[EMAIL PROTECTED]> > Subject: Re: [c-prog] Please Help > To: [email protected] > Date: Friday, November 14, 2008, 6:51 PM > On Fri, Nov 14, 2008 at 6:14 AM, Reepak > <[EMAIL PROTECTED]> wrote: > > Solve the Following question? > > > > write a C++ program to input a number.If the number n > is odd and > > positive,print its square root otherwise print > n*n*n*n*n. > > Do your own homework! > > -- Brett > ------------------------------------------------------------ > "In the rhythm of music a secret is hidden; > If I were to divulge it, it would overturn the > world." > -- Jelaleddin Rumi
