This article explains how to type an "ñ" on a computer with a Windows or macOS operating system.
Steps
Method 1 of 2: Windows

Step 1. Press ⊞ Win + S
This will open the Windows search bar.

Step 2. Type charmap
A list of relevant results will appear.

Step 3. Click on Character Map
This will open a list of characters that you can insert into your documents.

Step 4. Click on ñ
It is located more or less in the lower right corner of the first page of characters. There ñ will appear in the box next to "Characters to copy".

Step 5. Click Select at the bottom of the window

Step 6. Click Copy
There ñ will be copied to the clipboard.

Step 7. Click on the document in which you want to insert the ñ

Step 8. Press Ctrl + V
There ñ will be added to the document.
Method 2 of 2: macOS

Step 1. Open the document in which you want to insert the "ñ"
You can type it into any document using a keyboard shortcut on the Mac.

Step 2. Hold down the Option key on your keyboard
Don't lift your finger.

Step 3. Press the # key while continuing to hold the key Option.
The tilde will appear. Hold down the Option key.

Step 4. Press the # key again
At this point you will have typed a ñ on the Mac.