From bf0e9f0386234ea6226e316807645096dd9728a1 Mon Sep 17 00:00:00 2001 From: 91959 Date: Tue, 15 Oct 2019 19:26:53 +0530 Subject: [PATCH 1/3] i updated code --- New Text Document.c.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 New Text Document.c.txt diff --git a/New Text Document.c.txt b/New Text Document.c.txt new file mode 100644 index 0000000..2e720b3 --- /dev/null +++ b/New Text Document.c.txt @@ -0,0 +1,8 @@ +#include +int main() +{ + int m,n; + scanf("%d %d",&m,&n); + printf("%d",m+n); +return0; +} \ No newline at end of file From cad0397ab52414c7ce8ea5bb4e83408d93496e16 Mon Sep 17 00:00:00 2001 From: 91959 Date: Tue, 15 Oct 2019 21:33:00 +0530 Subject: [PATCH 2/3] program to find day of programmer --- day of programmer.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 day of programmer.c diff --git a/day of programmer.c b/day of programmer.c new file mode 100644 index 0000000..685301d --- /dev/null +++ b/day of programmer.c @@ -0,0 +1,35 @@ +#include +#include +#include +#include +#include +#include +#include +int days = 215; //256th days will be in 9th month so in 8 months, feb has variable days so + //remaining 7 months days will be 215 +void solve(int year){ + int febdays; + if(year<=1917) //julian calender + if(year%4 == 0) + febdays=29; + else + febdays=28; + else if(year == 1918) + febdays=15; + else + { + if((year%400 == 0)|| (year%4 == 0)&&(year%100 !=0)) + febdays=29; + else + febdays=28; + } + printf("%d.09.%d",256-(febdays+days),year);//febdays+days will be 8 months days +} + +int main() { + int year; + scanf("%d", &year); + int result_size; + solve(year); + return 0; +} From d9653be01f3886d04dd4043b5dc1e602b23040d0 Mon Sep 17 00:00:00 2001 From: 91959 Date: Tue, 15 Oct 2019 22:11:31 +0530 Subject: [PATCH 3/3] update 0.1 --- day of programmer.c => day of programmer 1.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename day of programmer.c => day of programmer 1.c (100%) diff --git a/day of programmer.c b/day of programmer 1.c similarity index 100% rename from day of programmer.c rename to day of programmer 1.c