Sunday, November 1, 2020

Displaying numbers 1 to 10 by running the loop for 5 times only in C

 #include <stdio.h>

int main()

{

    int i;

    for(i=1;i<=10;i+=2)

    {

        printf("%d%d",i,i+1);

    }

    return 0;

}

No comments:

Post a Comment

How to Fight Overthinking or Negative Thoughts?

How to Combat Overthinking or Negative Thoughts? 1. Don’t Fight Your Thoughts Trying to suppress or control negative thoughts often backfire...