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

DNF sorting ( 0s , 1s , 2s, sorting )