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;
}
Output
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;
}
Output
DEFAULT requirement is utilized to embed default value into a segment on a table and on the off chance that no any value is put away in wherever of a section, at that point default value will be...
In this article, we will figure out how to utilize CHECK requirement in SQL?Fundamentally, CHECK requirement is utilized to LIMIT in segments for the scope of values. We can utilize this...