/* ex0801.c */ #include <stdio.h> int main() { int a,b; a = 6; b = a - 2; printf("a = %d\n", a); printf("b = %d\n", b);
if(a > b) { printf("%d is greater than %d\n", a,b); } return(0); }
a = 6 b = 4 6 is greater than 4 Process returned 0 (0x0) execution time : 0.089 s Press any key to continue.
Tidak ada komentar:
Posting Komentar