C++ 7th code (if-->odd&even)
Mohammed Salah

Mohammed Salah @md-salah

About: Civil Engineer Like programming

Location:
saudi arabia
Joined:
Jan 15, 2025

C++ 7th code (if-->odd&even)

Publish Date: Jan 19
0 0
#include<iostream>
using namespace std;
int main()
{int a;
cout<<" \n\n\n  \t\t\t  Enter the number : ";
cin>>a;
cout<<"\n--------------------------------\n" ;
if(a%2==0)
{cout<<" \n\n\t The number is --> Even Number    \n " <<endl;}
else
{
cout<<" \n\n\t The number is  --> odd Number" <<endl;}
cout<<" \n ---------------------";
cin.get();
return 0 ;}
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment