Does anyone has a better solution for the getDate I wrote using if else statement . There's some bug going on with the | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does anyone has a better solution for the getDate I wrote using if else statement . There's some bug going on with the

program and I couldnt fix it , need help 🙏 https://code.sololearn.com/cH116HCBrBb5/?ref=app

4th Dec 2017, 2:58 PM
Carlos Tin
Carlos Tin - avatar
1 Answer
+ 5
Date, month and year haven't been initialized. Also the library of printf was missing. Fixed code: https://code.sololearn.com/cQV40F6kGNvg/?ref=app
4th Dec 2017, 3:38 PM
Shamima Yasmin
Shamima Yasmin - avatar