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 the program to arrange the n queen(queen of chessboard) in n*n matrix such that they can not ATTACK TO eachother.

Use of recursion