C program to input date as dd-mm-yy and display date as January 1st, 2010 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

C program to input date as dd-mm-yy and display date as January 1st, 2010

Please help me to solve this with if else / switch ... Please help me ASAP

22nd Jun 2019, 4:03 PM
The Cryptic Factory
11 Answers
+ 2
You wont be able to do it with just switches / ifs...sorry man.
22nd Jun 2019, 4:29 PM
Trigger
Trigger - avatar
+ 2
I dont do C language. All I know is that itll probably need Regular Expressions to split the string (python has split)
22nd Jun 2019, 4:33 PM
Trigger
Trigger - avatar
+ 2
Ill make one in Python starting tomorrow (my time), hopefully you can translate it (we dont have switch)
22nd Jun 2019, 4:34 PM
Trigger
Trigger - avatar
+ 2
Here is my implementation. Was slightly easier than I thought https://code.sololearn.com/cuDZKseqbJnu/?ref=app
22nd Jun 2019, 5:03 PM
Trigger
Trigger - avatar
+ 2
I made it relatively easy to understand. The if statements can be directly translated (except for elif) with minimal effort. We cant just *do* everything for you😋
22nd Jun 2019, 5:05 PM
Trigger
Trigger - avatar
+ 2
Good luck👍🏼 Sorry I cant do more than give the base logic
22nd Jun 2019, 5:12 PM
Trigger
Trigger - avatar
+ 1
Please answer me the program very simply for a beginner... If u have to include something u can include... please, make it beginner friendly
22nd Jun 2019, 4:32 PM
The Cryptic Factory
+ 1
Please someone help me 😭
22nd Jun 2019, 4:34 PM
The Cryptic Factory
+ 1
I am searching for C code
22nd Jun 2019, 5:04 PM
The Cryptic Factory
+ 1
Ok..ty
22nd Jun 2019, 5:11 PM
The Cryptic Factory