C Program

Write a program using curly braces in the if block.Enter only the three no and calculate their sum and multiplication.

The above program reads three integer values from the user and assigns them to the variables a, b, and c using scanf(). It then uses an if statement with curly braces to check if three values were successfully entered. If scanf() returns 3, which indicates that three values were entered correctly, then the statements inside […]

Scroll to top