Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C++ » C++ Programs List

C++ Programs List For Beginners

Basic Programs List

1. Write a program in C++ to display the message - welcome to c++ programming
2. Write a program in C++ to find the area of circle
3. write a program in C++ to find the area of triangle
4. Write a program in C++ to find the area of sphere
5. Write a program in C++ to find the circumference of circle

Input (cin) Examples

6. Write a program in C++ to find the area of circle using input value
7. Write a program in C++ to find the area of triangle using input value
8. Write a program in C++ to find the area of sphere using input value
9. Write a program in C++ to find the circumference of circle using input value
10. Write a program in C++ to read and print an given character
11. Write a program in C++ to print the ascii value of given character
12. Write a program in C++ to read and print the given integer
13. Write a program in C++ to read and print the given float
14. Write a program in C++ to read and print the given float with two decimal places
15. Write a program in C++ to read and print the given double
16. Write a program in C++ to read and print the given double with two decimal places
17. Write a program in C++ to Arithmatic operations of two integer numbers
18. Write a program in C++ to Arithmatic operations of two integer numbers. Print these results in separate lines
19. Write a program in C++ to Arithmatic operations of two long numbers. Print these results in separate lines
20. Write a program in C++ to Arithmatic operations of two float numbers. Print these results in separate lines
21. Write a program in C++ to Arithmatic operations of two double numbers. Print these results in separate lines

Character Examples

22. Write a program in C++ to print the upper case letters to lower case
23. Write a program in C++ to print the lower case letters to upper case

Programs on Datatype Conversion

24. Write a program in C++ to read float value and print integer equivalent
25. Write a program in C++ to read int value and print float equivalent
26. Write a program in C++ to show of a numeric value of a variable using hex, oct, and dec manipulator functions
27. Write a program in C++ to show of a numeric value of a variable using setbase functions
28. Write a program in C++ to disply the value using setw manipulator functions
29. Write a program in C++ to disply the value and fill unused field width some characters using setfill function.

IF Programs List

30. write a program in C++ to check whether the given number even or odd
31. write a program in C++ to check whether the given number positive ,negative or zero
32. write a program in C++ to check whether the given year is leap or not
33. Write a program in C++ to check whether the given character upper, lower , numbr or not
34. Write a program in C++ to change upper to lower 6. Write a program in C++ to change lower to upper
35. Write a program in C++ to print a word form of given number between 0 to 9
36. Write a program in C++ to print a word form of given number is tens between 1 to 99
37. Write a program in C++ for relations operations of two given integer numbers
38. Write a program in C++ for relations operations of two given float numbers
39. Write a program in C++ for given mark contain which grade
40. Write a program in C++ to find biggest of two given numbers
41. Write a program in C++ to find smallest of two given numbers
42. Write a program in C++ to find biggest of three given numbers
43. Write a program in C++ to find smallest of three given numbers
44. Write a program in C++ to find biggest of three given numbers using && operator
45. Write a program in C++ to find smallest of three given numbers using && operator
46. Write a program in C++ to display the name of the day in a week. Here given input range is 1 to 7
47. Write a program in C++ to find an biggest of four given numbers
48. Write a program in C++ to find an smallest of four given numbers
49. Write a program in C++ to find a vowel or not of given character

Switch Programs List

50. Write a program in C++ to display the name of the day in a week.here given input range is 1 to 7
51. Write a program in C++ to print a word form of given number between 0 to 9
52. Write a program in C++ to print a word form of given number is tens between 1 to 99
53. Write a program in C++ to find a vowel or not of given character

While Programs List

56. Write a program in C++ to print the numbers 1 to 100
57. Write a program in C++ to sum of first 100 numbers
58. Write a program in C++ to sum of first N numbers
59. Write a program in C++ to sum of M to N numbers
60. Write a program in C++ to find the average of 1 to 100
61. Write a program in C++ to sum of first N numbers
62. Write a program in C++ to average of M to N numbers
63. Write a program in C++ to display the even or odd numbers between 1 to 100
64. Write a program in C++ to display the even or odd numbers of first N numbers
65. Write a program in C++ to display the even or odd numbers between to ranges
66. Write a program in C++ to display the leap years between 1000 to 2000
67. Write a program in C++ to display the leap years of given range
68. Write a program in C++ to print the numbers between two ranges
69. Write a program in C++ to print the number until -1000 is given a input
70. Write a program in C++ to print the positive , negative and zero until -1000 is given a input
71. Write a program in C++ to count the positive , negative numbers and zero until -1000 is given a input
72. Write a program in C++ to sum of the positive , negative numbers until -1000 is given a input
73. Write a program in C++ to mean of the positive , negative numbers until -1000 is given a input
74. Write a program in C++ to factorial of given number until -1000 is given a input.

Comparsion of numbers with while loops

75. Write a program in C++ to find biggest of two numbers using ternary operator
76. Write a program in C++ to find smallest of two numbers using ternary operator
77. Write a program in C++ to find biggest of three numbers using ternary operator
78. Write a program in C++ to find smallest of three numbers using ternary operator
79. Write a program in C++ to find biggest of ten numbers
80. Write a program in C++ to find smallest of ten numbers
81. Write a program in C++ to find biggest of N numbers
83. Write a program in C++ to find smallest of N numbers using ternary operator
84. Write a program in C++ to read and display 10 numbers using array
85. Write a program in C++ to read and display of N numbers using array
86. Write a program in C++ to find mean of ten numbers using array
87. Write a program in C++ to find mean of N numbers using array
88. Write a program in C++ to find the biggest of 10 numbers using array
89. Write a program in C++ to find the smallest of 10 numbers using array
90. Write a program in C++ to find the position of biggest number in the array
91. Write a program in C++ to find the position of smallest number in the array
92. Write a program in C++ to find the positions of biggest&& smallest number in the array
93. Write a program in C++ to interchange the biggest && smallest number in the array
94. Write a program in C++ to find the second biggest of N numbers using array
95. Write a program in C++ to find the second smallest of N numbers using array
96. Write a program in C++ to find the second biggest and smallest of N numbers using array
97. Write a program in C++ to find the positions of second biggest and smallest
98. Write a program in C++ to reverse an integer array
99. Write a program in C++ to calculate sum of all numbers of an integer array
100. Write a program in C++ to compare two integer arrays