Breaking

Search This Blog

Monday, 3 September 2018

Java Program to Check if a Given Integer is Odd or Even

Java Program to Check if a Given Integer is Odd or Even in Hindi/English



This is a Java program to check whether a given integer is odd or even.
Enter an integer number as input. Now we check our balance with the module operator two. If the balance is zero then the given number is also. If the remainder is 1 then the given number is odd. So we show the production according to the rest

Here is the source code of the Java program to check that a given integer is strange or even. The Java program is successfully compiled and run on the Windows system. Program output is also shown below.

यह एक जावा प्रोग्राम है यह जांचने के लिए कि क्या एक दिया गया इंटीजर विषम या यहां तक कि है।
इनपुट के रूप में कोई पूर्णांक संख्या दर्ज करें। अब हम अपने शेष को मॉड्यूल ऑपरेटर के साथ दो से जांचते हैं। यदि शेष शून्य है तो दिया गया नंबर भी है। यदि शेष 1 है तो दिया गया संख्या विषम है। इसलिए हम शेष के अनुसार उत्पादन दिखाते हैं

जावा प्रोग्राम का स्रोत कोड यह जांचने के लिए यहां दिया गया है कि एक दिया गया पूर्णांक अजीब या यहां तक कि है। जावा प्रोग्राम सफलतापूर्वक संकलित और विंडोज सिस्टम पर चलाया जाता है। कार्यक्रम आउटपुट भी नीचे दिखाया गया है।

Program:-

class evenodd
{

 public static void main(String a[])

{

int b=5;

if(b%2==0)

{

System.out.print("number is even");

}
else
{

System.out.print("number is odd");

}
}
}


Output:-




even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,even odd program in java,

even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,even odd program in java in hindi,

5 comments:

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();