Basic C++ programming exercises.






















C++ Exercises

Basic C++ programming exercises.




  1. C++ program to print Welcome to c programming. | C ++ प्रोग्राम में आपका स्वागत है c प्रोग्रामिंग में आपका स्वागत है।
  2. C++ program to print integer value. | पूर्णांक मान मुद्रित करने के लिए C ++ प्रोग्राम।
  3. C++ program to print Float value. | फ्लोट वैल्यू प्रिंट करने के लिए C ++ प्रोग्राम।
  4. C++ program to print Double value. | डबल मूल्य प्रिंट करने के लिए C ++ प्रोग्राम।
  5. C++ program to print character. | सी ++ प्रोग्राम प्रिंट चरित्र के लिए।
  6. C++ Program to Print an Integer (Entered by the User). | C ++ प्रोग्राम को प्रिंट करने के लिए एक पूर्णांक (उपयोगकर्ता द्वारा दर्ज)।
  7. C++ Program to Print an Float (Entered by the User). | सी ++ प्रोग्राम एक फ्लोट प्रिंट करने के लिए (उपयोगकर्ता द्वारा दर्ज)।
  8. C++ Program to Print an double (Entered by the User). | सी ++ प्रोग्राम एक डबल प्रिंट करने के लिए (उपयोगकर्ता द्वारा दर्ज)।
  9. C++ Program to Print an Character (Entered by the User). | सी ++ प्रोग्राम एक चरित्र मुद्रित करने के लिए (उपयोगकर्ता द्वारा दर्ज)।
  10. C++ Program to Print Two Integers (Entered by the User). | C ++ प्रोग्राम टू प्रिंट टू इंटर्स (उपयोगकर्ता द्वारा दर्ज किया गया)।
  11. C++ Program to Print one Integers and one float (Entered by the User). | C ++ प्रोग्राम को प्रिंट करने के लिए एक Integers और एक फ्लोट (उपयोगकर्ता द्वारा दर्ज)।
  12. C++ Program to Print Data type sizes. | C ++ डेटा टाइप साइज को प्रिंट करने का प्रोग्राम।
  13. C++ Program to Print variable address. | C ++ प्रोग्राम प्रिंट वेरिएबल एड्रेस को।
  14. C++ Program to convert character to ASCII value. | चरित्र को ASCII मान में बदलने के लिए C ++ प्रोग्राम।
  15. C++ Program to convert ASCII value to the character. | C ++ प्रोग्राम को ASCII मान को वर्ण में बदलने के लिए।
  16. C++ Program to swap two numbers using the third variable. | C ++ प्रोग्राम तीसरे चर का उपयोग करके दो नंबर स्वैप करने का कार्यक्रम।
  17. C++ Program to swap two numbers without using third variable. | तीसरे संस्करण का उपयोग किए बिना दो नंबर स्वैप करने के लिए C ++ प्रोग्राम।
  18. C++ Program to calculate the sum of two numbers. | C ++ प्रोग्राम दो संख्याओं की गणना करने के लिए।
  19. C++ Program to calculate subtraction of two numbers. | C ++ प्रोग्राम दो संख्याओं के घटाव की गणना करने के लिए।
  20. C++ Program to calculate multiplication of two numbers. | C ++ प्रोग्राम दो संख्याओं के गुणन की गणना करने के लिए।
  21. C++ Program to calculate the division of two numbers. | सी ++ प्रोग्राम दो नंबरों के विभाजन की गणना करने के लिए।
  22. C++ Program to calculate the Remainder of two numbers. | C ++ प्रोग्राम दो नंबर के रिमाइंडर की गणना करने के लिए।
  23. C++ Program to calculate a^2-b^2 | C ++ प्रोग्राम 'a' स्क्वायर माइनस 'b' वर्ग की गणना करता है।
  24. C++ Program to calculate a^2+b^2. | C ++ 'a' square plus 'b' वर्ग की गणना करने का कार्यक्रम।
  25. C++ Program to calculate (a+b)^2. | C ++ प्रोग्राम एक प्लस बी पूरे वर्ग की गणना करने के लिए।
  26. C++ Program to calculate (a-b)^2. | C ++ प्रोग्राम '' माइनस 'b' होल स्क्वॉयर की गणना करने के लिए।
  27. C++ Program to calculate (a + b + c)^2.| सी ++ प्रोग्राम 'ए' प्लस 'बी' प्लस और 'सी' पल्स होल स्क्वायर की गणना करता है।
  28. C++ Program to calculate (a - b - c)^2. | C ++ प्रोग्राम 'a' माइनस 'b' माइनस 'और' c 'माइनस द होल स्क्वायर की गणना करता है।
  29. C++ Program to calculate (a + b)^3. | C ++ प्रोग्राम 'a' plus 'b' पूरे क्यूब की गणना करने के लिए।
  30. C++ Program to calculate (a - b)%^3 . | C ++ प्रोग्राम 'a' माइनस 'b' पूरे क्यूब की गणना करने के लिए।
  31. C++ Program to calculate a^3 – b^3.| C ++ 'a' क्यूब माइनस 'b' क्यूब की गणना करने का प्रोग्राम।
  32. C++ Program to calculate a^3 + b^3. | C ++ प्रोग्राम 'a' क्यूब प्लस 'b' क्यूब की गणना करने के लिए।
  33. C++ Program to calculate (a + b)^4. | C ++ प्रोग्राम चार की शक्ति के लिए 'a' प्लस 'b' होल की गणना करता है।
  34. C++ Program to calculate (a - b)4. | सी ++ प्रोग्राम चार की शक्ति के लिए 'एक' शून्य 'बी' छेद की गणना करने के लिए।
  35. C++ Program to calculate the area and perimeter of the rectangle. | आयत के क्षेत्रफल और परिधि की गणना करने के लिए C ++ प्रोग्राम।
  36. C++ Program to calculate the area and perimeter of the parallelogram. | C ++ प्रोग्राम, समांतर चतुर्भुज के क्षेत्रफल और परिधि की गणना करने के लिए।
  37. C++ Program to calculate the area and perimeter of the triangle. | त्रिकोण के क्षेत्र और परिधि की गणना करने के लिए C ++ प्रोग्राम।
  38. C++ Program to calculate the area of the Trapezoid. | सी ++ प्रोग्राम ट्रेपेज़ॉइड के क्षेत्र की गणना करने के लिए।
  39. C++ Program to calculate the perimeter of the Trapezoid. | सी ++ प्रोग्राम ट्रेपेज़ॉइड की परिधि की गणना करने के लिए।
  40. C++ Program to calculate the diameter, area and circumference of the circle. | सर्कल के व्यास, क्षेत्र और परिधि की गणना करने के लिए C ++ प्रोग्राम।
  41. C++ Program to calculate the volume and surface of the Rectangular Solid. | आयताकार ठोस की मात्रा और सतह की गणना करने के लिए C ++ प्रोग्राम।
  42. C++ Program to calculate the volume and surface of the prisms. | सी ++ प्रोग्राम की मात्रा और प्रिज्म की सतह की गणना करने के लिए।
  43. C++ Program to calculate the volume and surface of the cylinder. | सी ++ प्रोग्राम सिलेंडर की मात्रा और सतह की गणना करने के लिए।
  44. C++ Program to calculate the volume of the Pyramid. | पिरामिड की मात्रा की गणना करने के लिए C ++ प्रोग्राम।
  45. C++ Program to calculate the volume and surface of the Cones. | शंकु की मात्रा और सतह की गणना करने के लिए C ++ प्रोग्राम।
  46. C++ Program to calculate the volume and surface of the sphere. | सी + + क्षेत्र की मात्रा और सतह की गणना करने के लिए कार्यक्रम।

List of basic programming exercises 2



  1. Write a C++ program to perform input/output of all basic data types.
  2. Write a C++ program to enter two numbers and find their sum.
  3. Write a C++ program to enter two numbers and perform all arithmetic operations.
  4. Write a C++ program to enter length and breadth of a rectangle and find its perimeter.
  5. Write a C++ program to enter length and breadth of a rectangle and find its area.
  6. Write a C++ program to enter radius of a circle and find its diameter, circumference and area.
  7. Write a C++ program to enter length in centimeter and convert it into meter and kilometer.
  8. Write a C++ program to enter temperature in Celsius and convert it into Fahrenheit.
  9. Write a C++ program to enter temperature in Fahrenheit and convert to Celsius.
  10. Write a C++ program to convert days into years, weeks and days.
  11. Write a C++ program to find power of any number x ^ y.
  12. Write a C++ program to enter any number and calculate its square root.
  13. Write a C++ program to enter two angles of a triangle and find the third angle.
  14. Write a C++ program to enter base and height of a triangle and find its area.
  15. Write a C++ program to calculate area of an equilateral triangle.
  16. Write a C++ program to enter marks of five subjects and calculate total, average and percentage.
  17. Write a C++ program to enter P, T, R and calculate Simple Interest.
  18. Write a C++ program to enter P, T, R and calculate Compound Interest.