9.25.2014

How To Print V-Shape Pyramid In C

Q. Write a C program to print a V-Shape Pyramid as:

 *   *
  * *
   *

Ans.

/*how to print v-shape pyramid in c*/
#include<stdio.h>
int main()
{

9.03.2014

How To Print M-Shape Pyramid In C

Q. WAP to print M shape pyramid In C language as:

*   *
** **
* * *
*   *
*   *

Ans.

/* how to print m shape pyramid in c*/
#include<stdio.h>
int main()
{