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
http://www.hooksounds.com

Comments

Andis Aboltins says:

I did it this way
#include
#include

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

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


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

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours