C - Write program to count backward from 25 to 0

Requirements

Write program to count backward from 25 to 0

Demo

#include <stdio.h>

int main()// www . j  a  va  2  s .  co m
{
    int backwards;

    for(backwards=25;backwards>=0;backwards=backwards-1)
    {
        printf("%d\n",backwards);
    }
    return(0);
}

Result

Related Exercise