Saturday, March 29, 2014

Print numbers from 1 to 100 with increment of 1

#include<stdio.h>
#include<stdlib.h>
void line()
{
int i,j;
printf("\n");
for(i=1;i<=42;i++)
printf("=");
}
void header()
{
printf("\n");
printf("Built and Designed by Arslan Malik\n\n www.CworldbyAS.blogspot.com");
printf("\n");
}
int main()
{
line();
header();
line();


int i=0;
printf("\n");
for (i=1;i<=100;i++)
{
  printf("%d\n",i);

}
return 0;
}

No comments:

Post a Comment