reverse of a number Write a program to generate the reverse of a given number N. Print the corresponding reverse number. Input format...
Home
Archive for
August 2018
C++ program to print number pattern in c++ || c++ program to print patterns of numbers
Number pattern Print the following pattern for the given N number of rows. Pattern for N = 4 1234 123 12 1 Input format : Int...
c++ program to find power of a number using for loop || power of a number using for loop
Write a program to find x to the power n (i.e. x^n). Take x and n from the user. You need to print the answer. Input format : Two integ...
sum of even or odd digits in a given numbers in c++
Write a program to input an integer N and print the sum of all its even digits and sum of all its odd digits separately. Digits means num...
c++ program to find roots of quadratic equation || roots of quadratic equation in c/c++
Write a program to calculate the roots of a given quadratic equation - a(x^2) + bx + c = 0 Print roots specifying their nature....
Number pattern
Number pattern Print the following pattern for the given N number of rows. Pattern for N = 4 #include<iostream> u...
Total salary
Write a program to calculate the total salary of a person. The user has to enter the basic salary (an integer) and the grade (a...
Find the character case || uppercase or lowercase
Write a program to determine whether the entered character is in an uppercase or lowercase, or is an invalid character. Print. 1 f...
Average marks
Write a program to input name (as a single character) and marks of three tests of a student (all integers). Then calculate and prin...
Subscribe to:
Posts
(
Atom
)