2) .cheak even and odd nmbr\\\

//Check even or odd number
#include<iostream>

using namespace std;

int main()

int a,b;

  cin>>a;

    if (   a%2==0  )

      {cout<<" a is even nmber";

    }

    else cout <<"a is odd nmbr";

      return 0;

    }
   


Comments

Popular posts from this blog

Write a c++ program to display numbers which is divisible by 2 as well 3 from 6 to n by using and operator .

Write a c++ program to display numbers which is divisible by 2 as well 3 from 6 to n by using For loop and if else statement .

FALSE POSITION METHOD