Function Argument

in line number 12 we use argument as (int n),I didnt understand what is the use

hello @satveersingh12
that is the c++ syntax for defining function.

image

In function arguments we mention the datatype of the argument and name of the argument.
in ur case int is datatype of argument and n is the argument name

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.