how to print character using ascii value in c++

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about  how to print character using ascii value in c++ .So let’s go to our topic #include <iostream.h> #include <conio.h> void main() { clrscr(); char charac; cout << “Enter the character : ” << endl; cin>>charac; int num1=charac; cout << “The ASCII … Read more

How to write program convert temperatures from Celsius to Fahrenheit and vice versa

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about  How to write program convert temperatures from Celsius to Fahrenheit and vice versa .So let’s go to our topic #include <iostream.h> #include <conio.h> void main() { clrscr(); int choice; float ctemp,ftemp; cout << “1.Celsius to Fahrenheit” << endl; cout << … Read more

how to write program in cpp find the sum of either of the diagonals of a 4 x 4 matrix

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about how to write program in cpp find the sum of either of the diagonals of a 4 x 4 matrix .So let’s go to our topic #include <iostream.h> #include <conio.h> void main() { clrscr(); int x; int A[4][4],sum=0; //Reading the matrix. … Read more

how to write Program to enter 10 integers in a single- dimension array and then print out the array in ascending order

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about how to write Program to enter 10 integers in a single- dimension array and then print out the array in ascending order .So let’s go to our topic This program takes in the ten integers array[x] to be stored in the … Read more

how to wirte in cpp Program to print the first 10 lines of pascal’s triangle

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about how to wirte in cpp Program to print the first 10 lines of pascal’s triangle .So let’s go to our topic #include <iostream.h> #include <conio.h> #include <iomanip.h> long triangle(int x,int y); int main() { clrscr(); const lines=10; for (int i=0;i<lines;i++) for … Read more

how to write program enter a sentence and output the number ofuppercase & lowercase consonants, uppercase & lowercase vowels in sentence.

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about how to write program enter a sentence and output the number ofuppercase & lowercase consonants, uppercase & lowercase vowels in sentence.So let’s go to our topic #include <iostream.h> #include <conio.h> void main() { clrscr(); char line[80]; int number_of_vowels,uc,lc,uv,lv; uc=lc=uv=lv=0; cout … Read more

how to write program enter three integers and output the smallest integer using IF

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about how to write program enter three integers and output the smallest integer using IF .So let’s go to our topic #include <iostream.h> #include <conio.h> int main() { clrscr(); int x,y,z,smallest; cout << “Enter 3 integers : “; cin>>x>>y>>z; smallest=x; if(y<smallest) … Read more

how to write Program to identify if an input is a symbol, digit or character

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about  how to write Program to identify if an input is a symbol, digit or character .So let’s go to our topic #include <iostream.h> #include <conio.h> void main() { clrscr(); char charac; cout << “Enter your input : ” << endl; … Read more

how to create Program to convert 2-digit octal number into binary number and print it

Hello friends, Welcome to your Techgsr.co blog. And today in this article we will learn about  how to create Program to convert 2-digit octal number into binary number and print it .So let’s go to our topic #include <iostream.h> #include <conio.h> void octobin(int); void main() { clrscr(); int a; cout << “Enter a 2-digit octal number … Read more