Question: C 1 2 - WAP to print line pattern Available from: Saturday, 1 3 May 2 0 2 3 , 2 : 2 6 PM

C12- WAP to print line pattern
Available from: Saturday, 13 May 2023,2:26 PM
Due date: Tuesday, 7 May 2024,5:30 AM
Requested files: templaate.c ( Download)
Type of work: Individual work
Description :
- Read total (n) number of pattern chars in a line (number should be odd)
- Read number (m) of pattern char to be printed in the middle of line (odd number)
- Print the line with two different pattern chars
- Example Let's say two types of pattern chars '$' and '*' to be printed in a line. Total number of chars to be printed in a line are 9. Three '*' to be printed in middle of line.
Sample Execution :
Test case 1 :
Enter n : 9
Enter m : 3
$$$***$$$

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!