Monday, September 1, 2014

count backward from 100 to 1 in increments of 10


Create a counting program that counts backward from 100 to 1in increments of 10.

Code

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

Sample Output

backward counting c language

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