Print the pyramid using c language
Amit Waghmare
6 years ago
USING C LANGUAGE PRINT THE PYRAMID
C language code to display the pattern:
#include<stdio.h>
#include<conio.h>
void main()
{
int noofrows,rows,col1,col2,noofcols;
clrscr();
printf ("Enter the number: ");
scanf ("%d",&noofrows);
noofcols=noofrows-1;
for(rows=1;rows<=noofrows;rows++)
...
Print the pyramid using c language
Reviewed by Amit Waghmare
on
December 10, 2018
Rating:
