write a c program that has a function that prints a table of values for sin and cosine between (1,0)
Answers
Answered by
10
#include <stdio.h>
//to use 'sin()' function
#include <math.h>
int main()
{
// set the type of variable
float a, num;
// message for user
printf("Please enter a number from keyboard to find it's sin value\n");
scanf("%f", &num);
// storing the sin value
a = sin(num);
// printing the calculated value
printf("value in sin is = %.4f\n", a);
return 0;
}
Similar questions
English,
5 months ago
Math,
5 months ago
Physics,
11 months ago
English,
11 months ago
Computer Science,
1 year ago