1 2 4 8 16 32 64. . .........N di c++

Kamis, 06 Desember 2012 , Posted by Kabul Wahyudi at 09.28

#include "stdio.h"
#include "conio.h"
main()
{int f,N;
clrscr();
printf("\t MENCETAK DERET BILANGN BERTAMBAH sampai N \n\n");
printf("masukkan angka =");scanf("%d",&N);
for(f=1;f<=N;f*=2)
printf("%5.0d",f);
getch();
}

Currently have 0 komentar:

Leave a Reply

Posting Komentar