DEV Community

ViGnEsH
ViGnEsH

Posted on

Variable, operations, conditional statments PART 2

7. Even or Odd

Output

check a number odd or even code this
if condition number modulus 2 ===0 is even condition fail go else condition run


8. compare two passwords

Output

Check a password and repassword same print successfully

else print incorrect password.

9.Eligible to vote

Output

Eligible to vote is age 18 is starting age for vote


10. checked logged and admin

Output

Check a logged and admin is correct go inside


11. Total cart amount

Output

Calculator in a and b value in function


12. Greeting function

Output

create a function is name print in data


13. Temperture conversion

Output

Formal F=(CX9/5)+32


14. Largest number

Output

largest only give


15.EMI

Output

This is calculator in emi for price, rent, tax


16. Admin

Output

Admin only entry


17. positive, negative, or zero

Output

Here, is positive(1,2,3...), negative(-1,-2,-3...), or zero(0)


*movie ticket pricing *

Output

movie ticket price is chid 12 less than 100 more than age 200


20, Grade A, B, and fail

Output

Here, than grade A 90, grade b 75, fail less than


Top comments (0)