Write a program to get the value of sin (x) using a library
function , when x is given in degrees.
Answer / subrat
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float x,value;
printf("\n Enter a degree to get its Sin(x)
value=");
scanf("%f",&x);
clrscr();
value=sin(x);
printf("\n Value of Sin(x)=%f",value);
getch();
}
Is This Answer Correct ? | 16 Yes | 7 No |
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What can I use instead of namespace std?
What is a friend function in c++?
What is object file? How can you access object file?
What is nested class in c++?
What is lambda in c++?
What is the meaning of string in c++?
Is c++ double?
What is a .lib file in c++?
What are the advantages of using friend classes?
What is the difference between a constructor and a destructor in C++?