## Program to check number is prime or not

###### 2 years ago Admin 0
Check number is prime or not This article illustrates the concept how to check number is prime or not in c/c++ programming language. Prime numbers are those numbers which are divisible only by itself and 1. Here in this article the program will ask you to enter a number to check whether the entered number

## Program to find greatest between three numbers

###### 2 years ago Admin 0
Greatest between three numbers This article illustrates how to find the greatest between three numbers in c/c++.If/else statement is used to check greater between three numbers.The program will ask you to enter three numbers. C Programming language Program #include<stdio.h> #include<conio.h> void main() { int x,y,z; clrscr(); printf("Enter value of x:- "); scanf("%d",&x); printf("Enter value of

## Program to check greater between two numbers

###### 2 years ago Admin 0
Check greater between two numbers This program illlustrate how to check greater between two numbers with the help of if/else statement.The program will ask the user to enter two numbers. C Programming language Program #include<stdio.h> #include<conio.h> void main() { int m,n; clrscr(); printf("Entere value of m:- "); scanf("%d",&m); printf("Enter value of n:- "); scanf("%d",&n); if(m>n)

## Program to check number is even or odd

###### 2 years ago Admin 0
Check number is even or odd This article shows how to check number is even or odd. Even numbers are those numbers which are evenly divisible by two and odd numbers are those which are not divisible by two. C Programming language Program #include<stdio.h> #include<conio.h> void main() { int x; clrscr(); printf("Enter number:- "); scanf("%d",&x);

## Program to find ascii value using function toascii()

###### 2 years ago Admin 0
Ascii value using function toascii() This article shows how to find ascii value using function toascii() of entered symbol or character.ASCII stands for American Standard Code for Information Interexchange.Ascii is divided into three different sections Non printable(0-31), Lower Ascii(32-127), Higher Ascii(128-255). C Programming language Program #include<stdio.h> #include<conio.h> #include<ctype.h> void main() { int x; char a;

## Program to find square root of number using sqrt() function

###### 2 years ago Admin 0
Square root of number using sqrt() function This article shows how to find square root of number using sqrt() function in c/c++.The function sqrt() takes a single argument and return a square root .It a built-in function.math.h supports sqrt() function. C Programming language Program #include<stdio.h> #include<conio.h> #include<math.h> void main() { double number,root; clrscr(); printf("Enter number:-

## Program to swap two numbers without using third variable

###### 2 years ago Admin 0
Swap two numbers without using third variable The article shows how to swap two numbers without using third variable in c/c++.Here swapping of two variables refers to mutually exchanging the values of the variables. Usually, this is done with the data in memory.Let us see the example how it is possible. C Programming language Program

## Program to swap two numbers using third variable

###### 2 years ago Admin 0
Swap two numbers using third variable The article shows how to swap two numbers using third variable in C/C++.Here swapping of two variables refers to mutually exchanging the values of the variables. Usually, this is done with the data in memory. C Programming language Program #include<stdio.h> #include<conio.h> void main() { int x,y,z; clrscr(); printf("Enter value

## Program to add two entered integers

###### 2 years ago Admin 0
Add two entered integers The article shows how to add two entered integers in C/C++. C scanf() function is used to take the input from the user and printf() function is used to print the statement.X and Y are the integers which are used to stored the value two entered integers. Variable Z is used

## Program to print hello users

###### 2 years ago Admin 0
This article shows how to print hello users in c/c++. C Programming language In c printf function is used to print the statement. Program #include<stdio.h> #include<conio.h> void main() { printf("Hello users"); getch(); } OUTPUT C++ Programming language In c++ cout function is used to print the statement. Program #include<iostream.h> #include<conio.h> void main() { cout<<"Hello users";