Monday, September 1, 2014

Create a counting program that counts from 1 to 100 with increments of 5.


Code

#include<stdio.h>
int main()
{
int i;
i=1;
while(i<=100)
{
printf("%d\n",i);
i=i+5;
}
system("pause");
return 0;
}

Output

count from 1 to 100 c program

No comments :

Post a Comment

Note: Only a member of this blog may post a comment.

Copyright 2017. All Rights Reserved. Privacy Policy / Terms And Conditions / Sitemap / Contact