Q. 88. Write a program to input a digit and convert the Digit to corresponding Word and Print it.
Learn C++ with more than a hundred solved CPP programs. Get systematic guidance with well designed easy-to-learn progression of lessons that help evolve your understanding of C++ from its simple to advanced concepts and features. Learning C++ helps sharpen your logical skills and this prepares you to write core level program code. C++ professionals contribute extensively in health care, finance, game engines, IOT, embedded systems, machine learning, defense, avionics, aerospace and more.
Sunday, August 23, 2015
Using Switch Case to convert Digit to Word
Using Ternary Operator Check Even Odd number
Q. 89. Using C++ Ternary Operator, input a number and check if its Even or Odd.
Copy Code:
Upto 5 Multiples of Any Number - While Loop
Q. 90. Program to print upto 5 multiples of any number using "while" loop.
Copy Code:
Multiplication Table of Any Number
Q. 91. Write a program to accept a number and print its Multiplication Table. Also, prompt the user to Continue the process or Not.
Use Break, Continue to find Odd numbers within n Natural Numbers
Q. 92. Find Odd Numbers between 1 and "n" using "break" and "continue".
Find Numbers Above Average - Array Manipulation
Q. 93. Write a program to accept "n" numbers into array. Find the Average of n Numbers and print all numbers that are Above Average.
Copy Code:
Biggest Number in Array and its Position
Q. 94. Program to input 'n' numbers into an array. Find the biggest among them and print its position (array index position + 1).
#include <iostream>
using namespace std;
int main()
{
int a[25], n, i, bg = 0, pn = 0;
cout << " How many numbers can you provide? -> " ;
cin >> n ;
cout << "Enter " << n << " numbers \n" ;
for ( i = 0 ; i < n ; ++i)
{
cin >> a [ i ] ;
if (a[ i ] > bg)
{
bg = a[ i ] ; pn = i ;
}
}
cout << "Biggest Number is -> " << bg << " at position " << pn+1;
return 0;
}
Program To Find Word Length
Check if a Word is Palindrome
Q. 96. Write a C++ program to input a Word and check if it is a Palindrome (eg: madam, civic, kayak).
Note: Ignore case sensitiveness (eg: madam or Madam are both Palindrome)
Factorial of a number using functions
Q. 97 Write a C++ program to find the Factorial of a number using functions.
Check Armstrong Number
Copy Code:
Decimal to Binary Conversion
Q. 99. C++ program to convert a Decimal number to its Binary format.
Decimal to Hexadecimal Conversion
Q. 100. C++ program to convert a Decimal number to its Hexadecimal format.
Copy Code:
Saturday, August 22, 2015
Change Case of a Word
Q. 101. C++ Program to accept a word and change the Upper case (capital) letters to Lower case (small) and Lower case letters to Upper case.
Copy Code:Convert Centigrade to Fahrenheit
Q. 104. Program to convert Centigrade into Fahrenheit.
Program to print any Number in Words
Q. 108. Lets accept any positive number and convert it into Words using C++ program