Computer Science, asked by aryavairagare7, 9 months ago

write a c program that has a function that prints a table of values for sin and cosine between (1,0)​

Answers

Answered by shubhamk5352
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