Search⌘ K

Exercise 1: Function To Check Sum

Understand how to write a C++ function that adds two integers and uses conditional statements to compare the sum with 100. Learn to handle basic function creation, parameter passing, and conditional output to strengthen your programming fundamentals.

Problem statement

Write a function checkSum that takes two integers num1 and num2, calculates their sum and generates the results after ...