C++ Program to Check Whether Number is Even or Odd TienAnhvn December 31, 2019 Code 1: Check Whether Number is Even or Odd using if else #include <iostream> using namespace std; int main() { int n; cout... Read more
C++ Program to Swap Two Numbers TienAnhvn December 31, 2019 Code 1: Swap Numbers (Using Temporary Variable) #include <iostream> using namespace std; int main() { int a = 5, b = 10, temp; ... Read more
C++ Program to Find Size of int, float, double and char in Your System TienAnhvn December 31, 2019 Code: Find Size of a Variable #include <iostream> using namespace std; int main() { cout << "Size of char: "... Read more
C++ Program to Find Quotient and Remainder TienAnhvn December 31, 2019 Code : C++ Program to Find Quotient and Remainder #include <iostream> using namespace std; int main() { int divisor, divide... Read more
C++ Program to Add Two Numbers TienAnhvn December 30, 2019 In this program, user is asked to enter two integers. Then, the sum of those two integers is stored in a variable and displayed on the scre... Read more
C++ Program to Print Number Entered by User TienAnhvn December 30, 2019 Code Print Number Entered by User C++ #include <iostream> using namespace std; int main() { int number; cout << &q... Read more