C++20 sections · 1024 units
Open in Course

Challenge: Square Function

Write your first function

Functions let you organize code into reusable pieces! Your task: Write a function called square that takes an integer and returns its square. Then read a number and print its square using your function.