Skip to main content

Posts

Showing posts from February, 2022

Add Two Numbers in C++

Add Two Number in  C++ Program #include <iostream> using namespace std ; int main () {     int a , b ;     cout << "Enter two Numbers: \n " ;     cin >> a >> b ;     cout << "Sum=" << a + b ;     return 0 ; } THANKS FOR VISITING 💓💓💓 SUBSCRIBE FOR MORE:CODEWITHARYAN

Even or Odd | If Else in C++

 EVEN OR ODD | IF ELSE IN C++ #include <iostream> using namespace std ; int main () {     //IF ELSE:EVEN OR ODD     int n ;     cin >> n ;     if ( n % 2 == 0 )         cout << "Even" ;     else         cout << "Odd" ;     return 0 ; } THANKS FOR VISITING 💓💓💓 Subscribe To My Channel: CODEWITHARYAN