write a c++ programt to Draw a pattern of 0’s surrounded by *’s. The pattern should be like.
Attachments:
Answers
Answered by
0
Answer:
I hope that code will help ya
Explanation:
Attachments:
Answered by
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 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
Science,
4 months ago
Computer Science,
4 months ago
Math,
4 months ago
Chemistry,
9 months ago
Social Sciences,
1 year ago