Write a program to pattern
Answers
Answered by
1
Answer:
for (int i = 1;i>= 5;i++ )
{
for (int j = i;j<=5;j++ )
{
System.out.print("•");
}
System.out.println(" ");
}
Answered by
1
Answer:
5
45
345
2345
12345
#include <stdio.h>
int main()
{
int i, j;
for(i=5; i>=1; i--)
{
for(j=i; j<=5; j++)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}
Explanation: You will find lots of pattern programming exercise on tech study website. Here is the link
Similar questions