CoderMantra

Menu
  • Home
  • Quiz
  • How-To
  • Q/A
  • Blog

Tag: c++ assignments

C++ program to find the Area and Perimeter of a Rectangle.

April 6, 2023
| No Comments
| Assignments, c-plus-plus-Assignments, Practice Questions

In the above C++ program to find the area and parameter of a rectangle, we use simple arithmetic operation and calculate the result using the formula. Sample Output: Input the length of the rectangle : 23 Input the width of the rectangle : 45 The area of the rectangle is : 1035 The perimeter of…

Read More »

C++ program to swap two numbers using a third variable.

April 6, 2023
| No Comments
| Assignments, c-plus-plus-Assignments, Practice Questions

In the above C++ Program to swap two numbers using third variable, we assign the value of first variable to the third variable and value of second variable to the first variable and then the value of third value is assigned to the first variable. Sample Output: Input 1st number : 56 Input 2nd number…

Read More »

  • 2 of 2
  • « Previous
  • 1
  • 2

c++ assignments

  • C++ program to swap two numbers using a third variable.
  • C++ program to find the Area and Perimeter of a Rectangle.
  • Program in C++ to check whether a number is a positive number, negative number or zero.
  • C++ programs to display the current date and time.
  • C++ program to swap two variables without using a third variable.
  • A program in C++ that reads an integer n and prints a twin prime that has the maximum size among twin primes less than or equal to n.
  • Program in C++ to display all the leap years between two given years. If there is no leap year in the given period then display an appropriate message.
  • Program in C++ that accepts different numbers n as well as an integer s which is equal to the sum of the n different numbers. Find the number of combinations of n numbers.
  • A program in C++ to reverse a digit.
  • A program in C++ to calculate the factorial of a given number by using recursion.
About CoderMantra

Coder Mantra is a unique e-learning website, offers a tutorial of different popular programming languages with examples. The code on this popular tutorial website is tested and executed.

Latest Posts
How to Get High-Paying Clients in Freelancing (Real Strategy That Works) April 19, 2026
How to Build a Personal Brand as a Freelancer (Real Strategy That Actually Works) April 18, 2026
How to Increase Freelancing Income (From Beginner to ₹50K+/Month) April 17, 2026
Best Freelancing Skills in 2026 (High Demand, Future-Proof Options) April 15, 2026
Contact Us

info@codermantra.com

admin@codermantra.com

© 2020 Coder Mantra . All Rights Reserved
About | Privacy Policy | Terms | Contact