Even Number Pyramid :Generate the Following Pattern of Pyramid ?

2
2  4
2  4  6
2  4  6  8

Program :
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,num=2;
clrscr();
for(i=0;i<4;i++)
  {
  num=2;
 for(j=0;j<=i;j++)
  {
  printf("%d\t",num);
  num = num+2;
  }
  printf("\n");
  }
getch();
}
Question asked by : Kushal

1 comments

  1. Priteh Taral // May 18, 2025  

    @Kushal
    > Answer to Your Question

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email