filmov
tv
Wave Pattern in C || Design Pattern || C programming language

Показать описание
Given length and width, print the pattern in wave form using ‘/’ and ”.
Example:
Input : wave_height = 4
wave_length = 4
Output :
/\ /\ /\ /\
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \/ \/ \/ \
Input : wave_height = 2
wave_length = 3
Output :
/\ /\ /\
/ \/ \/ \
#wavepattern #c #designPattern
Example:
Input : wave_height = 4
wave_length = 4
Output :
/\ /\ /\ /\
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \/ \/ \/ \
Input : wave_height = 2
wave_length = 3
Output :
/\ /\ /\
/ \/ \/ \
#wavepattern #c #designPattern