Creating a 2 in 4 Triangles Pattern in C++

Basic Description

BASIC DESCRIPTION

For Basic Description, Click Here>>

OUTPUT

Logic Used

–> n=n/4
–> j=n-i+1
–> j=2*i-1
–> j=i
–> j=2*(n-i)+1
–> j=i
–> j=n-i+1
–> j=2*i-1
–>j=n-i+1
–> j=i
–> j=2*(n-i)+1
SOURCE CODE

Author Description

humanz

Our mission is to bring the affordable Technology education to people everywhere, in order to help them achieve their dreams and change the world. - Follow @program_guide

No comments yet.

Join the Conversation