C Programming Tutorial 44 – Coding Challenge

This is a small, simple coding challenge to test your understanding 🙂

Join the Community: http://Slack.CalebCurry.com
Instagram: http://instagram.com/CalebCurry
Twitter: http://twitter.com/calebCurry
Facebook: http://bit.ly/CalebCurryFacebook
More content: http://CalebCurry.com
Support me! http://www.patreon.com/calebcurry

~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~

Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter

Donate!: http://bit.ly/DonateCTVM2.

Artist: ARTISS
Title: Tropical Summer


Andis Aboltins says:

I did it this way

int main()

double a , b, c;
printf(“Please enter the value of a: “);
scanf(“%lf”, &a);

printf(“Please enter the value of b: “);
scanf(“%lf”, &b);

c = (a * a) + (b * b);

double hypotenuse = sqrt(c);
printf(“The length of hypotenuse is: %lfn”, hypotenuse);

return 0;
But the only way to compile it is gcc pythagoras.c -lm Something about linking something.Not sure yet.My PC runs on debian 9.Anyway the code works and it does what it has to!

Kira Latysheva says:

Thank you!

Yogesh Dabas says:

It was easy!

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!