Sunday, November 1, 2020

Running loop from 10 to 1 but displaying 1 to 10 in C

#include <stdio.h>

int main()

{

    int i;

    for(i=10;i>=1;i--)

    {

        printf("%d\t",11-i);

    }

    return 0;

No comments:

Post a Comment

All Quotes

 Quote 53: Ethical earning is key. Quote 52: Grades matter, but your skills, curiosity, and consistency matter even more. Quote 51: Be curio...