---
title: "Discussion on \"Mapping Numbers to Weekdays\" | Hashnode"
description: "Discussion on \"Mapping Numbers to Weekdays\". Q.Write a C++ program to accept a number and display the corresponding number of week day  \n#include <iostream>\nusing namespace std;\n\nint main() {\n    int day;\n\n    cout << \"Enter a number (1-7) to display the corresponding weekday: \";\n    cin >> day..."
url: "https://hashnode.com/posts/mapping-numbers-to-weekdays/66b094b1b23875658c076033"
---

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

Discussion

# [Mapping Numbers to Weekdays](https://shahalpp.hashnode.dev/mapping-numbers-to-weekdays?utm_source=hashnode&utm_medium=feed)

Q.Write a C++ program to accept a number and display the corresponding number of week day #include <iostream> using namespace std; int main() { int day; cout << "Enter a number (1-7) to display the corresponding weekday: "; cin >> day...

Aug 5, 2024 · 2 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.
