[ create a new paste ] login | about

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

C, pasted on Nov 3:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

float thirdAngle(float angleA, float angleB){
	return angleA + angleB;
}

int main(int argc, const char * argv[]){
	float angleA = 30.0;
	float angleB = 60.0;
	float angleC = thirdAngle(angleA, angleB);

	printf("The third angle is %.2f\n", angleC);
	return 0;
}


Output:
1
The third angle is 90.00


Create a new paste based on this one


Comments: