##### Age/Birthday Guessing AI

So you run this program and provide answers for the questions and it gives an answer, which is your birthday/age. This program is fun and good if you want to impress your friends. But actually its simple math.

This program is meant to guess your age in 2020 ONLY so, if you use this program to guess your age next year, it won't work.

Thanks to @RYANTADIPARTHI and @adsarebbbad for helping me out and also thanks to @Bookie0 for providing suggestions.

EDIT: At first, I mistakenly wrote that the last digit is your age in the number you get while finding your age. But actually it is the last two digits. Sorry, for the inconvenience.

And try this out and let me know how it is :)

https://repl.it/talk/share/THIS-PROGRAM-GUESSES-THE-NUMBER-YOU-PICKED/77334

EDIT: OKAY, so almost everyone in the comments are saying that if I asked for the birth year, I can easily know the age, but lets get this clear. If I subtract your birth year with 2020, you get ONLY your age. But when you solve the maths you get a three-digit number. the first digit is the number you picked in the first step and the last two digits are your age, And also take a look at the code and see if I have subtracted your birthyear by 2020

:)

Anyways, Enjoy :)

THANKS A LOTTT GUYS, MY PROGRAM FINLLAY HIT TRNDING. YAYYYYYYYYYY

@abdullahrajput9 You kinda deserved it

Thanks @DJWang

can you guys check this out and tell me how it is??

https://repl.it/talk/share/THIS-PROGRAM-GUESSES-THE-NUMBER-YOU-PICKED/77334

But it asks for your birthyear so it already knows how old you are

@JamesonCalhoun He subtracts that by 17500 or 1769(I think), not by 2020.

Edit: 1750*

Yup, FINALLY someone who understands what, I did.

@JamesonCalhoun, The final answer you get gives you the number you picked aswell as your age, so if I subtracted your birthyear by 2020, I would give you only your age :)

Ur program gave me the wrong answer 24 times but on the 25 try it was actually right I’m gonna upvote u for being a [email protected]

WDYM can u give me an example of the answer @MemeDriod

So for the 1-24 try’s it would give me the answer of 2009 and it would go all the way to 2014 and repeat but right on the 25 try it gave me 2008 and that was correct idk wut I did on the last [email protected]

Ok so u got 2009 that means u were born on the 20th of September, am i right? The birthday program is meant to find out ur date and month of birth :) @MemeDriod

No me birthday is 2008 September [email protected]

Ur stalking machine doesn’t [email protected]

Lol thats what i said @MemeDriod

Oof I mean [email protected]

Forget about [email protected]

The first two digits in the program in finding the birthday gives u the day u were born and the last two gives u the month u were born @MemeDriod

No u specifically wrote 2009 that would make me [email protected]

Yes bro the program DOSENT find out ur YEAR if birth but the month and date @MemeDriod

That was 3 long years [email protected]

Dude let’s forget about this I’m trying to eat but my hand can’t leave the keyboard if u keep chatting @abdullahrajput9

Ok plz let me [email protected]

nope, the answer for my birthday year was 2102 and I'm guessing it thought I was born on 2002. i was not lol

How is this possible? For me it gave me 3 numbers and said "The last two digits are your age"!

SO?? Was the age correct? @AndrewAung11

@abdullahrajput9 Yes it was!

COOL !! @AndrewAung11 Mind checking this out?

https://repl.it/talk/share/THIS-PROGRAM-GUESSES-THE-NUMBER-YOU-PICKED/77334

@AndrewAung11 “same as me!”

~~really ticked me off~~ a++++ you got me gud

`The answer is 511.`

`The last digit is your age`

I AM NOT FREAKING ONE YEARS OLD

@ch1cken Are you 11? I think that was what the program meant.

The last TWO digits are your age @ch1cken

The first number is the one you picked in the first step.

It was a typo in my program and it says first digit is your age, but actually the last two digits are your age

@SarangPark I am not 11

@ch1cken Oh I thought you were because it said 511 and 11 was the last two digits.

Anyways I am silly :), you can't join replit until you are 13 or over. It is in the rules :D. So obviously you can't be 11 :P.

Ya asked for my birthdate a++

lol this is really cool i found this on the talk page today and it is actually my bday!

Happy Birthday!!!! @sop87

Thanks :)

Umm.... tis may be a bug in the program I can't fix, or maybe it is because you mistakenly clicked Enter without realizing. But try running the program again and see if it works. @bowmand117

@abdullahrajput9 i tried sevral times with the same age. its still bugging

IDK What the problem is then @bowmand117

Sorry *_*

OMG 😮 I was born on Jan 16th!!!!!!!!!!!

@abdhulrajphut9 it doesn't work I'm not 11

what was the answer u got? @arpolepalli

@abdullahrajput9 he got 11

nice!

Thanks @python88

OMG I TELL IT WHAT MY BIRTHDAY IS AND SOME HOW IT TELLS ME WHAT MY BIRTHDAY IS!!!!!!!!!!!

still pretty cool though

How did it guess the month and day of my birth given only the month and day of my birth???

@WalrusesAwesome I asked for your date and month of birth but then i put them in one answer SHOWING you the math. This trick is meant to be be done by a person himself so only he knows the date and month of his birth but this is a program so things work differently :)

it was one day off my bday

wait i did it wrong

apparently i was that paranoid about it saving my birth year that i checked if the code contained some hidden database system

LMFAO Not so advanced yet @AJDevelopment

pls define a function next time for the printing slow

I know I cud have done that but i was lazy xD @NoNameByProgram

@abdullahrajput9 lmfao sorry for the inconvenience

I think your thing got date, and month mixed wrong

Your thing was wrong, it said my birthday was 10/04 but it is the opposite; 4/10. I think it is a little off, but otherwise good.

Wow uses a lot of good math

Umm Thanks @Stan085 I kinda love math and this is a very old trick my grade 1 teacher played on me

@abdullahrajput9 oh, well its still great, even if you didn't come up with it yourself :)

dude who made this formula @abdullahrajput9

Thanks @Stan085

Umm its a simple math trick TBH :) @ilovebeef

no i mean there has to be person behind this seriously @abdullahrajput9

Mathematicians LOL ofc @ilovebeef

lol @abdullahrajput9

In truth you can actually go to YouTube and see this trick but I use it as a way to impress my friends and make them think that I am a frickking GENIUS @ilovebeef

how old r u? are u 12 or 21 pick [email protected]

I will turn 13 in December actually @ilovebeef

WHY tho ???? @ilovebeef

U STALKEERRR HOW U KNOW MY AGE xD xD xD xD xD

Actually worked, but I find it's overly complex. Like, you asked for my birth date, you could easily ask for my birth year and subtract from current year. Nevertheless, cool. +1 from me (for making me not able to keep up).

LOL If I did that, It wouldn't impress anyone. The complexity is kind of the main objective in this post @Baconman321

@abdullahrajput9 Thought so.

Can you tell me how this is https://repl.it/talk/share/THIS-PROGRAM-GUESSES-THE-NUMBER-YOU-PICKED/77334 @Baconman321

@abdullahrajput9 It's ok, but it asked two questions before I could answer the first one, so it got the number wrong (only off by 2, so still cool).

...it asked what year i was born... it was a lot of code for a subtraction problem that could've been answered in like the last tow questions, but still it worked well so :).

Also I chose age 2020-2007 add on the question: 'Did you have your brithday this year?' and bam subtraction.

@CallMeKeegan If I subtracted your birthyear by 2020, you would get only your age but in the final answer you get your age and number you picked.

@abdullahrajput9 ok but why is that necessary? Everything leading up to that point seems to me like filler to make it seem like its doing more than it actually is.

The point is, I am not asking for your birthday, but I am doin it with math. Just a way to impress your friends :) @CallMeKeegan

Wrong! It said I was born in 2003 (My number was 2403) but I was actually born in 2006 ƪ(˘⌣˘)ʃ. But in all honestly nice program.

NGL, This program is made not to fail, because it is simple math. But, there are always flaws in any program soo... sorry @RayhanADev

@abdullahrajput9 no problem, I’m not complaining. I just thought it was interesting that it messed up mine (my it’s something on my end ;P)

Can you try the program agin and see if it works @RayhanADev

@abdullahrajput9 nice, it works! My birthday is indeed ~~June 24th, 2006~~ you don’t need to know xDxDxD.

Same with the other one. If you pay attention, it asks you the answer its trying to find.

Errr, it was wrong?

what was your answer?

@JBYT27

710, in other words, 10 @abdullahrajput9

YES COOL @JBYT27

? So what's the error? @abdullahrajput9

There is no error. @JBYT27

7 is the number you picked and 10 is your age.

Ami i right?

Or left?

Very tricky. A+ for actually manipulating my brain.

Thnx @Jeydin21