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.

#include<stdio.h>
#include<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;
}

Output:

Enter Two Numbers:4
8

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.

www.canlitvtr.net | www.idealminer.com | mersinnet.net |

Escort Mersin

|

Ankara Escort Bayan

|

Adana Escort Bayan

|

www.escortantalyali.com

|

www.izmirbescort.com

|

www.istanbulbescort.com

|

Eskort bayanlar

|

www.escortmersinli.com

|

Escort

|

izmirescort.biz.tr

|

izmirescort.info.tr

|

www.escortizmirescort.org

|

www.escortizmirescort.com

|

gaziantep escort

|

çanakkale escort

|

çeşme escort

|

pubg mobile hile indir