Tag: Example in C++

Program Example # 01 For Arithmetic Operators in C++

Problem statement: Calculate the average age of a class of ten students. Prompt the user to enter the age of each student.

Posted in: C++ Basics

Program Example # 02 For Arithmetic Operators in C++

Problem Statement: Write a program that takes a four digits integer from user and shows the digits on the screen separately i.e. if user enters 7531, it displays 7,5,3,1 separately.

Posted in: C++ Basics

Program Example # 03 For Arithmetic Operators in C++

Problem Statement: Write a program that takes radius of a circle from the user and calculates the diameter, circumference and area of the circle and display the result.

Posted in: C++ Basics

Exercises for Operators in C++

1. Write a program that will compute the area of a circle. The user must enter the radius of the circle. Use the following formula for area A=3.14*R^2? Click Here for Answer 2. Write a program that will solve for the power dissipation of a resistor when the voltage across the resistor and the current […]

Posted in: C++ Basics

Example Program for if Statement in C++

This is example program for understanding if statement in C++.

Posted in: C++ Basics

Example Program for if-else Statement in C++

This is an example program for understanding if-else statement in C++.

Posted in: C++ Basics

Example Program for Switch Statement in C++

This is an example program for understanding switch statement in C++.

Posted in: C++ Basics

Exercises for Decision Making Statements in C++

1. Write a program that determines the year entered by user is leap year or not? Click Here for Answer 2. Write a program which gives the following output Enter age>> And prints the following: If Age is greater than 45 then prints the message “You are old stay at home and wait for call” […]

Posted in: C++ Basics
Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .