Write a program to print all even numbers between 0 and an integer number entered by
the user using:
a. For loop
b. While loop
c. Do while loop
Write a program which counts for the number of digits in an integer number being
entered by user using:
a. For loop
b. While loop
c. Do while loop
Design a program that uses try-catch mechanism to check whether the integer input entered is correct type or not.
Design a class template with overloaded operator / to perform a = b / c.
The list of random numbers stored in an integer and float array. Perform search operation to find the search number is present or not from an array using templates concept.
* Print - Element Found or Element Not Found
input:
5
15
28
36
44
50
36
OutputĀ :
36
Element Found
1.
Get the top 10 channels for which more number of users are subscribed in the year 2018.
In case, if the no_of_subscribers are same, then sort the output in the ascending order of channel_name.
channel_id channel_name no_of_subscribers
Develop a C++ program to calculate the area of a cube and compare the size of cube is larger using this pointer.
Write a program in c which counts for the number of digits in an integer number being entered by user using: do While loop
Design a C++ program having a base class Student with data member rollno and member functions getnum() to input rollno and putnum() to display rollno. The class Test is derived from class Student with data member marks (Three subject marks) and member functions getmarks() to input marks and putmarks() to display marks. The class Sports is also derived from class Student with data member score (range between 100) and member functions getscore() to input score and putscore() to display score. The class Result is inherited from two base classes, class Test and class Sports with data member total and a member function display() to display rollno, marks, score and the total (marks + score).