Souce code:
#include <stdio.h>
#include <conio.h>
int main ()
{
int i=10,n,bil;
printf ("harga awal: ");
scanf("%d", &n);
printf ("harga akhir: ");
scanf("%d", &n);
for(i=10; i<=n ; i++)
{
if(i%2!= 0)
printf ("%d," ,i);
}
getch;
}
Output:
Tidak ada komentar:
Posting Komentar