Загрузка...

Exercise 17 Subtract Two Short Integers

🔹 Exercise 17: Subtract Two Short Integers in C

In this basic C programming exercise, we subtract one short int from another and print the result using %hd. It’s a simple yet important example for learning arithmetic and proper format specifiers in C.

📌 What You’ll Learn:

How to declare and use short int variables

How to perform subtraction directly in printf()

How to use the %hd format for short integers

🧠 Great for beginners practicing integer operations in C.
🎧 Optional background music: Soft instrumental or chill lo-fi beats to support focused learning.

👍 Don’t forget to Like, Comment, and Subscribe to support the channel and see more short C exercises!
📺 Full playlist available: Exercises 1–20 with short int.

🔸Exercise 1: Add Two Integers in C
https://youtu.be/PMREQp-RG6Q
🔸Exercise 2: Subtract and Multiply in C
https://youtu.be/Dc-oZUj3BCE
🔸Exercise 3: Integer Division
https://youtu.be/HZuHjCt0N9Q
🔸Exercise 4: Swap Two Integers
https://youtu.be/HY4WoH4nNMs
🔸Exercise 5: Check If Number is Positive or Negative
https://youtu.be/6zatoWRG5AA
🔸Exercise 6: Even or Odd
https://youtu.be/pMDmxrcgCZQ
🔸Exercise 7: Find the Largest of Three Integers in C
https://youtu.be/9K7hOvAV6Cw
🔸Exercise 8: Calculate the Factorial of a Number in C
https://youtu.be/nPrwMj7_01c
🔸Exercise 9: Multiplication table up to 10
https://youtu.be/A6aWLp4ZYEs
🔸Exercise 10: Input and Print One Float
https://youtu.be/YUm1CnSIRyY
🔸Exercise 11: Add Two Float Numbers
https://youtu.be/6OmfDcF4ZEI
🔸Exercise 12: Multiply Three Float Numbers Basic C Version
https://youtu.be/IMQC5xkif2E
🔸Exercise 13: Calculate Average of Two Float Numbers Basic C Version
https://youtu.be/rcWPz5EIMR0
🔸Exercise 14: Declare and Print a Short Integer
https://youtu.be/m57fvrheN4U

Видео Exercise 17 Subtract Two Short Integers канала IT-Pro
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять