program for identification of number is greater,less or equal to zero in c++ //Information pro



In this example, if…else statement is used to check whether a number entered by the user is even or odd.

To understand this example, you should have the knowledge of following C++ programming topics:

C++ if, if…else and Nested if…else
Integers which are perfectly divisible by 2 are called even numbers.

And those integers which are not perfectly divisible by 2 are not known as odd number.

To check whether an integer is even or odd, the remainder is calculated when it is divided by 2 using modulus operator %. If remainder is zero, that integer is even if not that integer is odd.

program for identification of number is greater,less or equal to zero in c++ //Information pro

Nguồn: https://dothihoa.com

Xem thêm bài viết khác: https://dothihoa.com/cong-nghe

  • Thanks . great job . I love you 😍😍😍

    الياس سايلا May 24, 2020 1:42 am Reply
  • Thanks

    Information pro May 24, 2020 1:42 am Reply
  • Great

    Anae May 24, 2020 1:42 am Reply
  • In mobile

    Jdjf May 24, 2020 1:42 am Reply
  • How to download this app

    Jdjf May 24, 2020 1:42 am Reply
  • Oxm

    Annas Idrees May 24, 2020 1:42 am Reply
  • nice

    Chudhary Vlogs May 24, 2020 1:42 am Reply
  • Nice pixel and great program

    allyan ayub May 24, 2020 1:42 am Reply
  • Grate program

    allyan ayub May 24, 2020 1:42 am Reply

Leave a Reply

Your email address will not be published. Required fields are marked *