C++ Program to Check if a number is Even or Odd
Don't have a laptop to start learning C++ Computer programming language ? Do not worry yourself about that because you can actually start learning C++ Computer programming language with your android phone.
The code below is useful for checking if a number is Even or Odd. And I wrote and ran it with my android phone.
#include<iostream>
using namespace std;
int main (){
int a;
cout << " Enter your number " << endl;
cin >> a;
int b = a%2;
if ( b==0){
cout<< "You've entered an even number "<< endl;
} else {
cout<< " You've entered an odd number " << endl;
}
}
Are you ready to start learning C++ Computer programming language with your android phone ? If your answer is yes, then, go to Play Store now and download the Cxxdroid app to start writing C++ codes with your android phone.
Happy learning
#c++ #LearnAndGrow #learn #learning #programming #programmer #coding #learncoding #AMSkillsHub #phone #androidphone #trending #trendingnow #trend #cxxdroid #computer #computerscience #computerprogramming #computerengineering #computers #MechatronicsEngineering #arduino #keepgoing #keeeplearningkeepgrowing
Please remember to share your contribution in the comment section below, and feel free to share this informative and educational content with your friends and family.
Join our WhatsApp community, where we discuss a wide range of topics including science, technology, engineering, politics, entertainment, and many more informative and educational contents. Simply click the link below to become a part of our discussions!👇👇👇
Want more awesome content, updates, and insights? Follow us on our social media handles for daily doses of inspiration, fun, and knowledge. Let's connect and keep the conversation going!
See you there!
Comments
Post a Comment