```
DECLARE
v_regno VARCHAR2(10);
v_name VARCHAR2(20);
v_dob DATE;
v_course VARCHAR2(20);
BEGIN
v_regno := ®no; -- Input registerno from user
FOR rec IN (SELECT name, dob, course
FROM students
WHERE registerno = v_regno)
LOOP
v_name := rec.name;
v_dob := rec.dob;
v_course := rec.course;
DBMS_OUTPUT.PUT_LINE('Student Details:');
DBMS_OUTPUT.PUT_LINE('Registerno: ' || v_regno);
DBMS_OUTPUT.PUT_LINE('Name: ' || v_name);
DBMS_OUTPUT.PUT_LINE('Date of Birth: ' || v_dob);
DBMS_OUTPUT.PUT_LINE('Course: ' || v_course);
END LOOP;
END;
```
YGBgCkRFQ0xBUkUKICB2X3JlZ25vICBWQVJDSEFSMigxMCk7CiAgdl9uYW1lICAgIFZBUkNIQVIyKDIwKTsKICB2X2RvYiAgICAgREFURTsKICB2X2NvdXJzZSAgVkFSQ0hBUjIoMjApOwoKQkVHSU4KICB2X3JlZ25vIDo9ICZyZWdubzsgIC0tIElucHV0IHJlZ2lzdGVybm8gZnJvbSB1c2VyCgogIEZPUiByZWMgSU4gKFNFTEVDVCBuYW1lLCBkb2IsIGNvdXJzZQogICAgICAgICAgICAgICAgRlJPTSBzdHVkZW50cwogICAgICAgICAgICAgICAgV0hFUkUgcmVnaXN0ZXJubyA9IHZfcmVnbm8pCiAgTE9PUAogICAgdl9uYW1lIDo9IHJlYy5uYW1lOwogICAgdl9kb2IgOj0gcmVjLmRvYjsKICAgIHZfY291cnNlIDo9IHJlYy5jb3Vyc2U7CgogICAgREJNU19PVVRQVVQuUFVUX0xJTkUoJ1N0dWRlbnQgRGV0YWlsczonKTsKICAgIERCTVNfT1VUUFVULlBVVF9MSU5FKCdSZWdpc3Rlcm5vOiAnIHx8IHZfcmVnbm8pOwogICAgREJNU19PVVRQVVQuUFVUX0xJTkUoJ05hbWU6ICcgfHwgdl9uYW1lKTsKICAgIERCTVNfT1VUUFVULlBVVF9MSU5FKCdEYXRlIG9mIEJpcnRoOiAnIHx8IHZfZG9iKTsKICAgIERCTVNfT1VUUFVULlBVVF9MSU5FKCdDb3Vyc2U6ICcgfHwgdl9jb3Vyc2UpOwogIEVORCBMT09QOwpFTkQ7CmBgYA==