Programming 1 Nor Shiella Wahab
Friday, 2 November 2012
example of define program
#include
<stdio.h>
#define
X1
b+c
#define
X2
X1+X1
#define
X3
X2*c+X1-d
#define
X4
2*X1+3*X2+4*X3
main( )
{
int
b=2;
int
c=3;
int
d=4;
int e=X4;
printf(" %d
%d
%d
%d
%d ", e, X1, X2, X3, X4);
return 0;
}
2 comments:
muhyoo
2 November 2012 at 06:18
bila masa kita buat menda ni?
Reply
Delete
Replies
Reply
Unknown
28 November 2012 at 00:36
ad lah sir..-_-
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
bila masa kita buat menda ni?
ReplyDeletead lah sir..-_-
ReplyDelete