C while loop code

 //


#include<stdio.h>

int main()

{

    int n;

    printf("N:");

    scanf("%d",&n);


    int i=0;

    while(i<=n)

    

    {

        printf("%d\n",i);

        i++;

    }

    

    return 0;


}

Comments

Popular posts from this blog

HERE IS ALL THE C CODE I CREATED

C sum all values output valus using for loop