/* Bsr. 1.1: bsr01_ISNUR.c Using if statements, relational operators, and equality operators */ #include <stdio.h> int main() { float A, B, C, besar; printf( "A =" ); scanf( "%f", &A ); printf( "B =" ); scanf( "%f", &B ); printf( "C =" ); scanf( "%f", &C ); if ( A > B ) besar = A; else besar = B; if ( C > besar ) besar = C; printf( "Terbesar = %f", besar ); return 0; } |
A = 5 B = 15 C = 8 Terbesar = 15 |
Monday, December 29, 2008
Tugas 6
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment