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 two integers x and n and compute x^n
June 07, 2018
C Program - Write a program to accept n number and display the array in the reverse order. write separate function to accept and display
June 14, 2018
C Program - A cashier has currency notes of denomination 1, 5 and 10 . Accept the amount to be withdrawn from the user and print the total number of currency notes of each denomination the cashier will have to give
June 01, 2018
Follow Us
Tags
Powered by Blogger
0 Comments