This is the simple C file “phpsolutions.c” to execute on linux terminal

#include

int main()
{
int i;
for(i=0;i<=5;i++)
{

printf(”n%d %s”,i,”phpsolutions.co.in”);

}
printf(”n”);
return 0;
}

Output:

[root@localhost ~]# gcc phpsolutions.c
[root@localhost ~]# make phpsolutions
cc phpsolutions.c -o phpsolutions
[root@localhost ~]# ./phpsolutions

0 phpsolutions.co.in
1 phpsolutions.co.in
2 phpsolutions.co.in
3 phpsolutions.co.in
4 phpsolutions.co.in
5 phpsolutions.co.in
[root@localhost ~]#