Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Noted: There will be no space between ^^^ and ***. Space will be only between lines. Write a C program that will take an integer
Noted: There will be no space between ^^^ and ***. Space will be only between lines.
Write a C program that will take an integer N and creates this pattern for the corresponding inputs.
For example,
If N=3, the pattern look like this,
If N=6, the pattern look like this,
Input Format
You will be given a positive integer N as input.
Constraints
1 <= N <= 20
Output Format
Output the pattern
Sample Input 0
1
Sample Output 0
^
Sample Input 1
3
Sample Output 1
^ *** ^^^^^
Sample Input 2
6
Sample Output 2
^ *** ^^^^^ ******* ^^^^^^^^^ ***********
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started