Write a program using for loops to produce an R by C rectangle, where R and

thomasdoejr 0 Tallied Votes 324 Views Share

Write a program using for loops to produce an R by C rectangle, where R and C are provided by the user. The following are the triangles for different values of R and C. R is the number of rows and C is the number of columns

Rectangle 3 x 6
******
******
******
 
Rectangle 4 x 5
*****
*****
*****
*****
rproffitt 2,565 "Nothing to see here." Moderator

Try again with a fresh discussion as there doesn't appear to be any "Reusable Code Snippet" here.

Also, read https://www.daniweb.com/welcome/rules about assignments. You must show effort.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.