67 : C Program to print odd numbers 1 3 5 7 9 ...

Check out the complete list of c-programs : C Program List    





This program prints out odd numbers between 1 to 20.

Logic :

   for ( i = 0 ; i < 20 ; i++ )
   {
      i = i+1;
      printf("%d  ", i);
     
   }










/*
 * 1000+ C programs + tutorials
 *
 * 
 * 67_c_program_to_print_odd_numbers_1_3_5_7_9_11.c
 *  
 *  
 *
 *  Created on: Oct 25, 2014
 *  Author: Code2care.org
 */

#include 
//#include 

void main() {



//clrscr();

int i;
int no;
 
 
   printf("\nC program to print Odd numbers : ");
 
   for ( i = 0 ; i < 20 ; i++ )
   {
      i = i+1;
      printf("%d  ", i);
     
   }

 //	getch(); 

}










The best way to learn C programming is to practice more and more of programs . Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.

BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.