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 make substring of a string.

FALSE POSITION METHOD

Write a program that prompts the user to input a positive integer. It should then print the multiplication table of that number.