Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

OOP Lab 4 Assignment :

Name : Utkarsh Trivedi Roll : 21053223

Branch : CSE-39 Date : 1-9-22

Q1) WAP which displays a given character, n number of times, using a function.
When the n value is not provided, it should print the given character 80 times.
When both the character and n value is not provided, it should print ‘*’
character 80 times.
Output:
Q2) WAP to increment the value of an argument given to function.
OUTPUT:
Q3)WAP to find square and cube of a number using inline function.
OUTPUT :

You might also like