Nov 30, 2016

Introduction to User Defined Functions

Introduction to User Defined Functions A function is a group of statements that together perform a task. Every C++ program has at least one function, which is main(), and all the most trivial programs can define additional functions. We have study about #define in previous lessons. Functions...

Program: Check given number for Prime Number

Program: Check given number for Prime Number We know about prime number is a number which is greater than one and can only divide by 1 or by its own number. In this program we check the given number for prime number. #include <iostream> using namespace std; int main() { int n; ...