Basic Programs
Fundamental C++ programs to get started with programming
14 program solutions
Program Solutions
Hello World
The classic first program that prints "Hello World" to the console
Display Your Name
Program to display your name on the screen
User Input
Program to take input from user and display it
Sum of Two Numbers
Program to add two numbers entered by the user
Swap Two Numbers
Program to swap two numbers using a temporary variable
Size of int, float, double, char
Program to display the size of different data types
Float Multiplication
Program to multiply two floating-point numbers
ASCII Value of a Character
Program to find and display the ASCII value of a character
Convert Fahrenheit to Celsius
Program to convert temperature from Fahrenheit to Celsius
Calculate Simple Interest
Program to calculate simple interest
Calculate Compound Interest
Program to calculate compound interest
Area and Perimeter of Rectangle
Program to calculate area and perimeter of a rectangle
Find Quotient and Remainder
C++ Program to Find Quotient and Remainder (5 Ways)
Add Two Numbers
C++ Program to Add Two Numbers (6 Methods With Output)