Advertisement
luistavares

Definindo uma constante através da diretiva #define

Aug 24th, 2012
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.13 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. #define PI 3.14159
  4.  
  5. int main( ) {
  6.     printf("O valor de PI eh: %f", PI);
  7.     getch( );
  8.     return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement