## Detect keypress and print ASCII value C++

Here we will write a program to Detect keypress and print ASCII value C++. We will use a infinite while loop until user press ESC(escape button on keyboard), user will enter a key and the program will provide the ASCII value of the input. WAP to Detect keypress and print ASCII value C++: PROGRAM: #include<iostream> #include<conio.h> … Read more

## Program to Draw Hollow diamond Shape in C++

Wap in C++ to Draw hollow Diamond shape in C++   For other triangle and diamonds shapes see –> Patterns and Shapes in C++  PROGRAM: #include<iostream> using namespace std; int main() { int size; cout<<"Enter size of Diamond: "; cin>>size; int z=1; for ( int i=0; i<=size; i++) { for (int j=size; j>i; j–) { cout<<" … Read more

## Find factorial using recursion in C++

Here we will write a C++ program to find factorial using recursion, first we will understand what are factorials of a number and how to find out the factorials of a number. Lets start with what is factorial. What is Factorial of a number: The factorial of a non-negative integer n, denoted by n!, is … Read more

## Simple program to print right triangle shape in C++

A very simple program to print right triangle shape in C++. PROGRAM: #include<iostream> using namespace std; int main() { for(int i=0;i<=5;i++){ for(int j=0;j<=i;j++) { cout<<j; } cout<<endl; } return 0; }   OUTPUT: 0 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 Related Posts:Python … Read more

## Program to implement Linear Search C++

Here we will write a program to implement Linear Search C++ programming language, so first lets start with what is linear search and then we will write a program in C++ to implement Linear Search. What is Linear Search: Linear search or sequential search is a method for finding a target value within a list. … Read more