#include
main()
{
int a,b,c,d,i,hasil;
printf("\n MENAMPILKAN URUTAN ANGKA KELIPATAN 3 DAN 5\n");
printf(" ==============================================\n\n");
printf(" # Masukkan Nilai Terakir = ");scanf("%d",&a);
printf("\n\n\n");
printf(" Hasil :\n");
printf(" ================= \n\n");
for(i=1;i<=a;i++)
if (i%3==0)
if (i%5==0)
printf(" %d",i);
else
printf("");
else
printf("");
getche();
}
Tidak ada komentar:
Posting Komentar