^^^^^^^^^^^^^Triangle Display^^^^^^^^^^^^^^^
*
* *
* * *
* * * *
* * * * *
---------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
int i,j;
printf("Triangle Display \n");
for(i=1;i<10;i++)
{
for(j=1;j<=i;j++)
{
printf("*\t");
}
printf("\n");
}
}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* * * * *
* * * *
* * *
* *
*
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#include<stdio.h>
void main()
{
int n,i,j;
clrscr();
printf("Enter the no of lines required: \n");
scanf("%d",&n);
for(i=n;i>0;i--)
{
for(j=1;j<=i;j++)
{
printf("* \t");
}
printf("\n");
}
}
Subjects to Expect in Computer Science Engineering – Find out about the various subjects in a typical Computer Science Engineering course, including artificial intelligence, machine learning, and big data analytics.
ReplyDelete