C Program To Find The Odd Numbers

C Program To Find The Odd Numbers Within The Certain Declared Values

#include <stdio.h>

int main()

{

  int i, n;

  printf("Enter the max number: ");

  scanf("%d", &n);

  printf("The odd number upto %d are: \n", n);

  for (i = 0; i < n; i += 2)

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

  i++;

  return 0;
}


Output

Odd

Comments

Popular posts from this blog

C Program for SCAN Disk Scheduling Algorithm | C Programming

C program to Find Cartesian Product of Two Sets | C programming

C Program To Check The String Is Valid Identifier Or Not | C Programming