How to print odd numbers ( 1 -> 10) by do - while?
My code: http://codepad.org/yS6DNq8Y
#include <stdio.h>
#include <conio.h>
int i;
void Dayso()
{
do
{
i = 1
i++;
if ( i % 2 == 0 )
{
continue;
}
printf ("\n%d",i);
}while (i <= 10 );
}
int main()
{
Dayso ();
getch();
return 0;
}
and the output:
Line 18: error: conio.h: No such file or directory
In function 'Dayso':
Line 10: error: expected ';' before 'i'
How do I fix this?