/* Lat. 0.2: lat02.c Hitungan Pencacahan */ #include <stdio.h> int main() { int C = 0, N = 6, D = 1; while ( C <= N ) { printf( "%d", D ); D = C + D; } printf( "Hitungan Terakhir = %d", D - 7 ); return 0; } |
1 3 6 10 15 21 Hitungan Terakhir = 21 |
Sunday, December 28, 2008
Tugas 2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment