![]() |
Write a program to convert a given number of days to weeks. Examples:
Approach: To solve the problem, follow the below idea:
Step-by-step algorithm:
Below is the implementation of the algorithm: C++
C
Java
Python3
C#
Javascript
Output
30 days is equal to 4 weeks and 2 days. Time Complexity: O(1) |
Reffered: https://www.geeksforgeeks.org
Programming |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |