C++ Programming Examples for Beginners – C# Programming Example
C++

C++ Programming Examples for Beginners

C++ program to convert string into mm/dd/yyyy format

 

C++ Program to check if number is Krishnamurthy

A Krishnamurthy number is a number whose sum of the factorial of digits is equal to the number itself. For example 145, 1! + 4! + 5! = 1 + (4*3*2*1) + (5*4*4*2*1) = 1 + 24 + 120 = 145. This C++ program takes input from user and check if it is Krishnamurthy. Program is divided into functions factorial(int) and isKrishnamurthy(int). For more details please run this code.

 

Finding Krishnamurthy numbers between 1 & 1000

We will use the above program only, but we will call isKrishnamurthy() function inside the for loop which runs from 1 to 1000

 

Count the number of letters in the sentence

 

Count the number of words in the sentence

Count the punctuation marks in any sentence

 

Program to find if string is Palindrome

Program to count letters in each word of sentence

 

Count the vowels in the sentence

 

Is there a palindrome word the sentence

 

Printing Reverse Rectangle using numbers

 

Printing Triangle Pattern using numbers

 

C++ Program to calculate area of Rectangle

 

C++ Program of Recursion

 

C++ program to find avg of top 4 score

 

C++ program to calulate seconds in given time

 

C++ program to check if sequence of nos are even or odd

 

C++ program to check if number is prime using function

 

C++ program to find power of any number without using pow() function

 

C++ program to calculate sales of 6 months

 

C++ Program on Drinking/Vending Machine

 

How to initialize const variables of any class in C++

 

C++ program that reads in the lines from a text file & displays it

Write a program that reads in the lines from a text file and displays them with line numbers and a colon. Limit the display to 24 lines at a time per the instructions. The output of the line numbers will be right aligned as shown below. The program may be handled in main.

 

C++ program to convert string into enum

 

C++ program to find sum of n numbers using function

 

C++ program on inheritance and virtual functions

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: