Check last digit number same or not in javascript

technical talkiess
0

 <script>

const a = parseInt(prompt("Enter the first number"));

const b = parseInt(prompt("Enter the Second number"));

const c = parseInt(prompt("Enter the Third number"));


var d = a % 10;

var e = b % 10;

var f = c % 10;


if(d == e && d == f){

alert("a,b,c in the last same number here");

}else{

alert("not a same number");

}

</script>


Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)