Files
2026-01-21 10:34:07 +01:00

20 lines
395 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Quick Exercise — Variables
Try writing a small script (your language of choice) that:
Asks the user for their name.
Accept the name only if:
1. Length ≤ 20
2.First character is a letter
3.Contains no digits
4.Contains no spaces
This tests:
✔ Reading input
✔ Using variables
✔ Printing output
Reply here with your solution — Ill give feedback.
I will use c for this exercises