dimanche 6 décembre 2020

Hello to everyone who reads this I'm a beginner and I'm learning php for web programming I don't really understand how to do it [closed]

  • Declare three variables: $or, $amis, $ tari, which contain the day, month, and year of your or your friend's birth.Example: $ or = 1; $amis = 9; $tari = 1989;
  • Declare 3 more variables: $ ays_or, $ays_amis, $ ays_tari, which contain the current day, month, and year. For example: $ ays_or = 3; $ays_1mis = 12; $ays_tari = 2016;
  • Create a program that uses pre-declared variables to calculate your age (or the age of the person you saved the date of birth to in the variables).

Try to optimize your application as much as possible using logical operators:&&, ||:

Aucun commentaire:

Enregistrer un commentaire