escort tekirdağ escort tokat escort muğla escort ordu escort sivas escort kuşadası escort kıbrıs
C Programming

C program which uses 5 functions from MATH.h

C program which uses 5 functions from MATH.h.

int main()
	float a,b;
	printf("Enter Two Numbers:");
	scanf("%f %f",&a,&b);
	printf("\nLog Values are %.2f and %.2f",log(a),log(b));
	printf("\nPower %.2f ^ %.2f=%.2f",a,b,pow(a,b));
	printf("\nFloor Values are %.2f and %.2f",floor(a),floor(b));
	printf("\nCeil Values are %.2f and %.2f",ceil(a),ceil(b));
	printf("\nSquare Roots are %.2f and %.2f",sqrt(a),sqrt(b));
	return 0;


Enter Two Numbers:4

Log Values are 1.39 and 2.08
Power 4.00 ^ 8.00=65536.00
Floor Values are 4.00 and 8.00
Ceil Values are 4.00 and 8.00
Square Roots are 2.00 and 2.83

Get more stuff
in your inbox

Subscribe to our newsletter and get interesting stuff and updates to your email inbox.

Bibith K Mathew (born on 29 July 1998) is an Indian Internet entrepreneur. He is best known as the CEO and Managing Director of TalkBate Digital Partners.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.