answersLogoWhite

0

#include <stdio.h>

#include <math.h>

int main(int argc, char* argv[])

{

int val = atoi(argv[1]);

printf("val = %g sine=%g\n", (double)val, sin(val));

return 0;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you write a program in c to compute the power of a number without using the mathh library?

There is a function which can do it for you. You have to include math.h in headers. And then use the function pow(x, y) which returns a value of type double (x and y are double too).pow(x, y) = x to the power of y.


What module returns a value back to the part of the program that called it?

A function. You can have a function that returns but doesn't return a value with it.


What is the difference between high and maxinum in Excel?

Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.


How do you use worksheet function to fill the selected cell with the largest value?

Each program has its own formula, one should look for the tutorial on the program one is using in order to know the correct way for each separate program.


Is the time you take to go to the library a function of the distance to the library please explain?

yes because its the range value of the domain


Importance of functions in c?

Based on execution 1. Iterative Function 2. Recursive Function Based on Argument and return value 1. No argument No return value 2. With argument Without return value 3. With out argument without return value 4. With argument With return value


What statement causes a function to end and sends a value back to the part of the program that called the function?

The statement that causes a function to end and sends a value back to the calling part of the program is the return statement. When a return statement is executed, it terminates the function and can optionally pass a value back to the caller. If no value is specified, the function returns None in Python or equivalent in other languages. This allows the caller to receive the result of the function's computation.


What is a named operation that returns a value in the Excel program used to simplify formulas?

A function.


How do you calculate sine value without using math function?

Using its Taylor-series.


What significance is attached to the name main?

main refers to the entry point of an application. All programs must have a main() function that returns an integer to the calling program or script. The return value can be used for any purpose, but generally a non-zero negative value is used to indicate that an error occurred (zero meaning no error).


What is the difference between simple program and function in C?

A function is a piece of code that has no or more arguments, that returns no or one value. A program is code that implements the function int main(int argc, char** argv). As such, a function and a program are the same, but the program also includes compiler directives to "include" other things, such as standard headers, i.e. #include .


Write a program using recursion which should take two values and display 1st value raised to the power of second value?

Write a program using recursion which should take two values and display 1st value raised to the power of second value.