A. Hashes
Problem Setup
- login to CS50 IDE
- write
cdin the terminal to go to the home directory - write
mkdir hashesto create a folder calledhashes - write
cd hashesto go to thehashesfolder - write
code hashes.cppto create a file calledhashes.cppand open it in the editor
Problem
Given an integer \(n\), you need to print \(n\) hashes.
Input
The first line contains an integer \(n\) where \(1 \leq n \leq 100\) — the number of hashes to print.
Output
Print \(n\) hashes.
Examples
Example 1:
Input:
3
Output:
###
Example 2:
Input:
5
Output:
#####
Test Your Code
Make sure you are in the hashes directory, then run the following command:
check50 iti-technical-team/problemset/2026/2/hashes
Submit Your Code
Make sure you are in the hashes directory, then run the following command:
submit50 iti-technical-team/problemset/2026/2/hashes