Computer Science, asked by abdiq2020, 9 months ago

write a c++ programt to Draw a pattern of 0’s surrounded by *’s. The pattern should be like.

Attachments:

Answers

Answered by Tejas1582
0

Answer:

I hope that code will help ya

Explanation:

Attachments:
Answered by varshamittal029
0

Concept:

A computer program is a set of instructions written in a programming language that can be executed or interpreted by a computer.

Program:

C++ program to draw a pattern 0s surrounded by * as shown in the figure.

Solution:

#include <iostream>

int main()

{

   for(int i=1;i<=3;i++)

       {  std::cout<<"***********\n";

          if(i==3)

          {break;

          }

           std::cout<<"*0*0*0*0*0*\n";}

   return 0;

}

Similar questions