CSE106 - Fundamentals of Web Design

Assignment 4

Details of the Student:

  1. Name: Thashan Anil Dasashish
  2. Enrollment ID: SAU/FET/BTECH(CSE)/2025/213
  3. Section: D
  4. Branch: B. Tech. CSE - Semester 2
  5. Email: thashan.dasashish2025@students.sau.ac.in

Index


Question 2:

Roll-Seed Lock

Take an integer N and the student's seed value. Repeat the following exactly 3 times: Input Format: Take N and seed using prompt()
Output Format: Use alert() to show YES or NO along with the final number.
Constraints: 1 ≤ N ≤ 10^6, 0 ≤ seed ≤ 9


Solution:

Press the button to execute JS solution of the question.