Code Scrappers


First 10 Natural Numbers C program


              #include<stdio.h>
              #include<stdlib.h>

              void main()
              {
                  int i = 1;

                  for (i = 1; i <= 10; i++)
                  {
                      printf("%d\n", i);
                  }

              }
          



Output

        1
        2
        3
        4
        5
        6
        7
        8
        9
        10