VR Indian Wanderers Youtube RSS Feed
Learn with Vikas Suhag
Program using math library functions in C Language
Nov 26, 2021   Vikas Suhag

Program using math library functions in C Language

#include<stdio.h>
#include<math.h>
void main()
{
int i = -10, e = 2, d = 10,s=100;
float rad = 1.43;
double d1 = 3.0, d2 = 4.0;
printf("%d\n", abs(i));
printf("%f\n", sin(rad));
printf("%f\n", cos(rad));
printf("%f\n", exp(e));
printf("%d\n", log(d));
printf("%f\n", pow(d1, d2));
printf("%f\n", sqrt(s));
}


Leave a Comment

* Email will not be published.
All comments are only visible after approval.
Most Viewed articles
Travel Blog - VR Indian Wanderers
VR Indian Wanderers
Govt. Jobs Portal
Govt. Jobs Portal
Free Chart Maker
Make free animated Charts from .CSV
Search
Youtube Channel
Podcast
Subscribe to Email Updates
Connect With Us
VR Indian Wanderers Youtube RSS Feed
© 2024 Learn with Vikas Suhag. All Rights Reserved.