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 <[EMAIL PROTECTED]>
To: [email protected]
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", °);
> 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]