[ create a new paste ] login | about

Link: http://codepad.org/GZBk3uaN    [ raw code | output | fork ]

C, pasted on Sep 16:
1
2
3
4
5
6
7
8
9
10
11
12
include<stdio.h>
#define PI 3.14
#define AREA(x,y,z) PI*x*x+y*z

int main()
{
	float a = AREA(1, 5, 8);
	float b = AREA(AREA(1, 5, 8), 4, 5);
	printf("a = %f\n", a);
	printf("b = %f\n", b);
	return 0;
}


Output:
1
Line 1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token


Create a new paste based on this one


Comments: