4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
9 lines
139 B
C
9 lines
139 B
C
#include <math.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
double pi = 3.14;
|
|
float c = cos(pi);
|
|
printf("cos(%f) = %f\n", pi, c);
|
|
}
|