intelektual alternatives

Posts Tagged ‘c-free


#include
#include

#define NUM_RANKS 13
#define NUM_SUITS 4
#define NUM_CARDS 5
#define TRUE 1
#define FALSE 0

typedef int bool;
int num_in_rank[NUM_RANKS];
int num_in_suit[NUM_SUITS];
bool straight , flush , four , three;
int pairs ;
void read_cards(void);
void analyze_hand(void);
void print_result(void);
main() Baca entri selengkapnya »


#include
void suamitidakpunyaanak(){
int a,b,c,d,e,f,g,x,z,y;
float k,l,m,n,o,p;
printf(“\n”);
printf(“===================\n”);
printf(“Hitung Suami tidak punya anak\n”);
printf(“masukan jumlah warisan=”,’x’);scanf(“%i”,&x);
printf(“jumlah istri=”,’a’);scanf(“%i”,&a);
printf(“jumlah ibu=”,’e’);scanf(“%i”,&e);
printf(“jumlah bapak=”,’d’);scanf(“%i”,&d);
printf(“\n”);
printf(“bagian masing masing adalah:\n”);
printf(“===========================\n”);
k=(0.25*x);
l=(0.33*x);
m=x-(k+l);
printf(“warisan=%i\n”,x);
printf(“bagian istri=%f\n”,k);
printf(“bagian ibu=%f\n”,l);
printf(“bagian bapak=%f\n”,m);
} Baca entri selengkapnya »


%d blogger menyukai ini: