plz send me c++ progam

--- On Mon, 18/8/08, Jefferson Mendoza <[EMAIL PROTECTED]> wrote:

From: Jefferson Mendoza <[EMAIL PROTECTED]>
Subject: Re: [c-prog] Re: Question??
To: [email protected]
Date: Monday, 18 August, 2008, 9:02 PM






I mean sir, the formula is log(cos(15)

how can i get the answer in negative and decmal form.. for example..

#include<math. h>
#include<stdio. h>
int main(void)

{

int x;
int y;

x = cos(15);
y = log10(x);
printf("%d", y);

}

the error is log10:sing error
overflow

----- Original Message ----
From: Paul Herring <pauljherring@ gmail.com>
To: [EMAIL PROTECTED] com
Sent: Monday, August 18, 2008 11:23:23 PM
Subject: Re: [c-prog] Re: Question??

On Mon, Aug 18, 2008 at 4:13 PM, Jefferson Mendoza
<jefferson_mendoza@ rocketmail. com> wrote:
> Sir what is the function for negative decimal?
>
> example -0.9292

> From: John Matthews <[EMAIL PROTECTED] com>
[...]
> double deg;
[...]
> gotoxy(x,y + 1);printf("Enter degrees: ");
> scanf("%lf", &deg);
> getchar(); /* getchar takes care of the line feed character */

The scanf will take positive or negative numbers.

-- 
PJH

http://shabbleland. myminicity. com/sec


[Non-text portions of this message have been removed]

 














      Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[Non-text portions of this message have been removed]

Reply via email to