Any integer is input through the keyboard. Write a program to find out whether it is an odd number or even number.

#include<stdio.h>
main()
{

int num;

printf ("Enter a number to be checked for even/odd: ");
scanf ("%d",&num);

if (num%2==0)
{
printf ("The entered number is EVEN.\n");

}
else
{
printf ("The entered number is ODD.\n");

}
}



The file can also be downloaded at:
Download File


2 comments:

  1. Thanks For sharing this info, I really appreciate you and your effort and thought you’ve put into creating it. The insights and information are truly valuable. Thanks so much for sharing this!
    ICC ਚੈਂਪੀਅਨਸ ਟ੍ਰਾਫੀ 2025: ਭਾਰਤ ਨੇ ਨਿਊਜ਼ੀਲੈਂਡ ਨੂੰ ਹਰਾਇਆ, ਸੈਮੀਫਾਈਨਲ ‘ਚ ਆਸਟ੍ਰੇਲੀਆ ਨਾਲ ਮੁਕਾਬਲਾ!
    ਪੰਜਾਬੀ ਗਾਇਕ ਦਿਲਜੀਤ ਦੋਸਾਂਝ ਦਾ ਸ਼ੋਅ ਫਿਰ ਚਰਚਾ ਵਿੱਚ, ਧੋਖਾਧੜੀ ਦਾ ਮਾਮਲਾ ਦਰਜ
    ਨਸ਼ਾ ਵਿਰੁੱਧ ਕਾਰਵਾਈ: ਫਿਲੌਰ ਦੇ ਖ਼ਾਨਪੁਰ ਅਤੇ ਮੰਡੀ ਵਿੱਚ ਅਣਅਧਿਕਾਰਤ ਉਸਾਰਤਾਂ ਨੂੰ ਢਾਹਿਆ ਗਿਆ
    ਪਹਿਲੇ ਸਰਬ ਭਾਰਤੀ ਪੁਲਿਸ ਕਬੱਡੀ ਕਲੱਸਟਰ 2024-25 ਦੀਆਂ ਤਿਆਰੀਆਂ ਮੁਕੰਮਲ: ਇੰਦਰਬੀਰ ਸਿੰਘ
    ਸੰਗਰੂਰ ਵਿੱਚ ਦੋਸਤ ਨੇ ਦੋਸਤ ਦਾ ਸਿਰ ਵੱਢ ਕੇ ਨਾਲ਼ੇ ਵਿੱਚ ਸੁੱਟਿਆ
    "ਅੱਜ ਦਾ ਹੁਕਮਨਾਮਾ (03-03-2025) ਸੱਚਖੰਡ ਸ੍ਰੀ ਹਰਿਮੰਦਰ ਸਾਹਿਬ ਜੀ ਅੰਮ੍ਰਿਤਸਰ

    "
    ਕੰਨਾਂ ਦੀ ਸਮੱਸਿਆ ਤੋਂ ਬਚਣ ਲਈ ਏਅਰਪੋਡ ਅਤੇ ਏਅਰਫੋਨ ਦੀ ਵਰਤੋਂ ਤੋਂ ਪਰਹੇਜ਼ ਕਰਨ ਦੀ ਸਲਾਹ: ਸਿਵਲ ਸਰਜਨ ਡਾ. ਗੁਰਪ੍ਰੀਤ ਸਿੰਘ

    ReplyDelete

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin