Functions

A group of statement that perform a particular task are known as functions. We have already seen functions, the main() function is an inseparable part of a C++ program. We can define our own functions too. The main() function looks like: The return type of a function is declared first which describe the type of … Continue reading Functions

Conditionals

You have learned about getting inputs and displaying outputs but their are certain cases where we want to execute program according to the given input. For example: A vegetable vendor is left only with spinach. Now if any one asks for spinach he will say Yes, if any other vegetable is asked for he will … Continue reading Conditionals