---
title: "Discussion on \"2: average sleep time 💤\" | Hashnode"
description: "Discussion on \"2: average sleep time 💤\". Day 2 went very bad.\nI started coding a weekly-average sleep time calculator. The user would input their sleep hour 7 times until the code exits the loop and calculate the average hour, and print it out. But I didn’t know how to use the loop correctl..."
url: "https://hashnode.com/posts/2-average-sleep-time/67c8efc6128c558299da5f47"
---

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

Discussion

# [2: average sleep time 💤](https://bugquest.hashnode.dev/2-average-sleep-time?utm_source=hashnode&utm_medium=feed)

Day 2 went very bad. I started coding a weekly-average sleep time calculator. The user would input their sleep hour 7 times until the code exits the loop and calculate the average hour, and print it out. But I didn’t know how to use the loop correctl...

Mar 6, 2025 · 1 min read · bugquest.hashnode.dev  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#programming-ciovqvfcb008mb253jrczo9ye](https://hashnode.com/tag/programming-ciovqvfcb008mb253jrczo9ye)
-   [#day2](https://hashnode.com/tag/day2)
-   [#c](https://hashnode.com/tag/c)

## Written by

[thebug](https://hashnode.com/@bugquest)

@bugquest

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
