Skip to content
Snippets Groups Projects
Commit fb7e9b42 authored by Mohamed Yasar arafath K M's avatar Mohamed Yasar arafath K M :speech_balloon:
Browse files

intiial commit

parent 1f541aa2
No related branches found
No related tags found
No related merge requests found
floyd.c 0 → 100644
#include<stdio.h>
int main()
{
int i,j,k=1;
for (i = 0; i < 4; i++)
{
for ( j = 0; j <= i; j++)
{
printf("%d ",k);
k+=1;
}
printf("\n");
}
}
\ No newline at end of file
#include<stdio.h>
int main()
{
int i,j;
for ( i = 0; i < 5; i++)
{
for ( j = 0; j <= i; j++)
{
printf("*");
}
printf("\n");
}
}
\ No newline at end of file
#include<stdio.h>
int main()
{
int i,j;
char c='A';
for (i = 0; i < 5; i++)
{
for (j=0; j<=i; j++)
{
printf("%c",c);
}
printf("\n");
c+=1;
}
}
\ No newline at end of file
#include<stdio.h>
int main(){
int i,j;
for ( i = 1; i <=5; i++)
{
for (j = 1; j <= i; j++)
{
printf("%d",j);
}
printf("\n");
}
}
\ No newline at end of file
#include<stdio.h>
int main()
{
int i,j;
for (i=0; i <5; i++)
{
for (j = 5; j >= i; j--)
{
printf("*");
}
printf("\n");
}
}
\ No newline at end of file
#include<stdio.h>
int main()
{
int i,j,k=1;
for ( i = 0; i < 5; i++)
{
for (j = 5; j >i; j--)
{
printf("%d",k);
k+=1;
}
k=1;
printf("\n");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment