Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define NUM 42
- #define PI 3.14
- #define MYINT int
- #define SUM(x,y) ((x)+ (y))
- #define MAX(a,b) ((a) > (b) ? (a) : (b))
- #define MIN(a,b) ((a) < (b) ? (a) : (b))
- #define FORI(a,b,s) for(int i = a; i <= b; i+=s)
- int main(){
- MYINT a = SUM(5,10);
- int b = MAX(a, 10);
- int c = MIN(3, -12);
- printf("c= %d", c);
- printf("a= %d, = %d\n", a, b);
- FORI(0, 100, 5){
- printf("%d\n", i);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement