---
title: "Discussion on \"Conditionals and Loops in C++\" | Hashnode"
description: "Discussion on \"Conditionals and Loops in C++\". Conditionals\nIn case of condition, if it is true then just do something  let's look on simple code for understanding \n#include <iostream>\nusing namespace std;\nint main()\n{\n    int a, b;\n    cout << \"Enter two numbers\" << endl;\n     /* here, cout is j..."
url: "https://hashnode.com/posts/conditionals-and-loops-in-c/612efbed4e9d8114f8ae04a6"
---

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

Discussion

# [Conditionals and Loops in C++](https://aayusranjan.hashnode.dev/conditionals-and-loops-in-c?utm_source=hashnode&utm_medium=feed)

Conditionals In case of condition, if it is true then just do something let's look on simple code for understanding #include <iostream> using namespace std; int main() { int a, b; cout << "Enter two numbers" << endl; /\* here, cout is j...

Sep 1, 2021 · 4 min read · aayusranjan.hashnode.dev  
Read the article

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

## Written by

[Ayush Ranjan](https://hashnode.com/@aayusranjan)

@aayusranjan

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

## Responses 1

Markdown supported · ⌘↵ to post

[Code Igniter](https://hashnode.com/@coder1s)

[Sep 1, 2021](https://hashnode.com/posts/conditionals-and-loops-in-c/612efbed4e9d8114f8ae04a6/comment/612f05a14e9d8114f8ae05d3)

What a great post, fantastic work!
