Advertisement
popovIliya

March-2022-Conditional Statements - Lab -Number 100...200

Mar 5th, 2022
1,113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function numbers(input){
  2.     let n = parseInt(input[0]);
  3.     if( n < 100){
  4.      console.log("Less than 100");
  5.     }
  6.     else if(n >= 100 && n <= 200){
  7.         console.log("Between 100 and 200");
  8.     }
  9.     else{
  10.         console.log("Greater than 200");
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement