C++ PROGRAMMING FOR GCD AND PRINT NUMBER FROM 1 TO 20 Get link Facebook X Pinterest Email Other Apps - July 23, 2020 Read more
C++ PROGRAM Even or Odd using if else Get link Facebook X Pinterest Email Other Apps - July 23, 2020 Check Whether Number is Even or Odd using if else # include <iostream> using namespace std ; int main () { int n; cout << "Enter an integer: " ; cin >> n; if ( n % 2 == 0 ) cout << n << " is even." ; else cout << n << " is odd." ; return 0 ; } Read more