/* ling 1.1: ling01_ISNUR.c area and round program */ #include <stdio.h> int main() { float r, luas, keliling; printf( "jari-jari = " ); scanf( "%f", &r ); luas = r * r * 3.14; printf( "luas = %f\n", luas ); keliling = 2 * r * 3.14; printf( "keliling = %f\n", keliling ); return 0; } |
jari-jari = 100 luas = 31400 keliling = 628 |
Sunday, December 28, 2008
Tugas 5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment