Skip to content

Commit

Permalink
preprocessor_1-pi
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWatcher01 committed Nov 10, 2023
1 parent 4895c46 commit 15cbb15
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions preprocessor/1-main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include "1-pi.h"
#include <stdio.h>

/**
* main - check the code
*
* Return: Always 0.
*/
int main(void)
{
float a;
float r;

r = 98;
a = PI * r * r;
printf("%.3f\n", a);
return (0);
}
5 changes: 5 additions & 0 deletions preprocessor/1-pi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#ifndef PI

#define PI 3.14159265359

#endif
Binary file added preprocessor/b
Binary file not shown.

0 comments on commit 15cbb15

Please sign in to comment.