Home
Mega Menu
FYBCS
_C
_HTML & CSS
SYBCS
_DS
_SCILAB
TYBCS
_JAVA
_PHP
Download Apk
Home
c
C Program - display triangle A to display n lines as follows
C Program - display triangle A to display n lines as follows
prozone
June 07, 2018
A B C D
E F G
H I
J
Program
#include<stdio.h>
int main()
{
int i,j;
char a=65;
for(i=0;i<4;i++)
{
for(j=i;j<4;j++)
{
printf("%c\t",a);
a++;
}
printf("\n");
}
}
Output:
A B C D
E F G
H I
J
Post a Comment
0 Comments
Popular Posts
C Program - Write a program to accept a matrix A of size mXn and store its transpose in matrix B. Display matrix B. Write separate functions
June 15, 2018
C Program - Write a function, which accepts a character and integer n as parameter and displays the next n characters
June 14, 2018
C program - Write a menu driven program to perform the following operations till the user selects Exit. Accept appropriate data for each option. Use standard library functions from math.h
June 10, 2018
Follow Us
Tags
Powered by Blogger
0 Comments