/* File : konstanta.c */
/* Penulis : Izza, email izza.fahlevi@gmail.com */
/* Deskripsi : */
/* Mendefinisikan konstanta bertype int, float, char */
#include <stdio.h>
#define FALSE 0
#define NOL 0
#define SATU 1
#define pi 3.1415
int main ()
{
/* KAMUS */
const int maks = 3;
const float param = 2.5;
const char cc = 65;
const char cA = 'A';
/* ALGORITMA */
printf ("PI = %6.2f\n", pi);
printf ("NOL = %d\n", NOL);
printf ("SATU = %d\n", SATU);
printf ("FALSE = %d\n", FALSE);
printf ("maks = %d\n", maks);
printf ("param = %d\n", param);
printf ("cc = %d\n", cc);
printf ("cA = %d\n", cA);
printf ("%d\n", 3);
printf ("3\n"); /* tanpa memakai nama, tidak disarankan */
return 0;
}