Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions c/Pattern.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#include<stdio.h>
#include<conio.h>
int main()

//Execution of every program start with main function.
int main(void)
{
int i,w,p;
int i,w,p; //variable declaration
char str[]="SURYA";

printf("\n");
for(i=0;i<5;i++)
{
Expand All @@ -16,8 +19,8 @@ int main()
p=i+1;
printf("\n%-5.*s",p,str);
}
getch();
return 0;
getch(); //getch take any value form the keyboard.
return 0; // it will return 0 to the main function because return-type of main function is int.
}
/*
The output of the code will be as follows---
Expand Down