include
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

main()
{
 int i;
 for(i=1; i<=100; i++)
 {
  if (i%2!=0)
  {
   printf("%d\t", i);
  }
 }

Lalu akan tampil seperti ini :

Leave a Reply