INDEX

4.03.2014

Nested 1 Type Symbol Pyramid

Q. Write a nested single symbol pyramid C program as:

#
#
##
##
###
###
####
####

Ans.

/*c program for nested single symbol pyramid*/
#include<stdio.h>
int main()
{
 int num,r,c,z;
 printf("Enter Maximum Loop Repeat Number: ");
 scanf("%d", &num);

4.01.2014

Nested 2 Types Symbol Pyramid

Q. Write a C program to print the following nested 2 types different symbol pyramid as:

@
#
@@
##
@@@
###

Ans.

/*c program for nested 2 types different symbol pyramid*/
#include<stdio.h>
int main()
{
 int num,r,c,z;
 printf("Enter Maximum Loop Repeat No. : ");
 scanf("%d", &num);