C program to convert given number of days into years, weeks and days
In this C program you will know how to convert given number of days into years, weeks and days.
For example:
If user enter 1234 days then.
Years = 3
Weeks = 21
Days = 1
Comment below if you are facing any problem to understand the logic of this program.
#include<stdio.h>
int main()
{
int y,w,d,a;
printf("Enter total number of days:");
scanf("%d",&d);
y=d/365;
a=d%365;
w=a/7;
d=a%7;
printf("\nYears=%d\nWeeks=%d\nDays=%d",y,w,d);
return 0;
}
ReplyDeleteThanks for this information. it is helpfull and worthy
Laptop Repair Center offers quality service for your laptop at a reasonable cost. We offer doorstep support, 24*7 onsite support, repair all brand laptops, have an expert team for onsite support, and much more. for more contact us on 7291903784
laptop repair center in Delhi
thank u for this valuable information..very helpful
ReplyDeleteFamily Chaat is one of the best selling north indian food booth such as Pani Puri, Aloo Tikki Chaat, Bhalla Papari, Gol Gappa Chaat, Cholay Tikki, Papri chaat, Samosa cholay, Samosa chaat, Raj kachori chaat, Pao Bhaji, Vada Pao, and Samosa Bada Pao. Family Chaat is made available to every customer with unique flavor, quality taste, and hygiene and we are the best chaat provider in India.
street food indian
i found it very helpful. thank u
ReplyDeleteMast Banarasi Paan is one of the best selling paan such as Rajwadi paan, Laddu paan, Choclate Paan, Fire paan, Silver paan. Mast Banarasi Paan is made available to every customer with unique flavor, quality taste, and hygiene and we are the best paan provider in India.
banarasi paan