---
title: "Discussion on \"Checking Even or Odd Numbers\" | Hashnode"
description: "Discussion on \"Checking Even or Odd Numbers\". Q.Write a C++ program to accept a number. Using conditional operator print whether the number is even or odd.\n#include <iostream>\nusing namespace std;\nint main()\n{\n    int number;\n\n\n    cout<<\" Enter a  number : \";\n    cin>>number;\n\n    string result..."
url: "https://hashnode.com/posts/checking-even-or-odd-numbers/66b0920b3dc92ea6a5a09154"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Checking Even or Odd Numbers](https://shahalpp.hashnode.dev/checking-even-or-odd-numbers?utm_source=hashnode&utm_medium=feed)

Q.Write a C++ program to accept a number. Using conditional operator print whether the number is even or odd. #include <iostream> using namespace std; int main() { int number; cout<<" Enter a number : "; cin>>number; string result...

Aug 5, 2024 · 1 min read · shahalpp.hashnode.dev  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)

## Written by

[Muhammed Shahal pp](https://hashnode.com/@shahal)

@shahal · Kerala,India

  
[View profile](https://hashnode.com/@shahal)

Aspiring Web Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
