ok wat i m tryin 2 say is
when i hit M, i want it to show on dos ( by using scanf i believe) taht you are married and if you hit D instead that means you are divorced.
Here is the cde with the required changes :
Code:
#include <stdio.h>
int main(void)
{
int nblivre, c;
float kg, cels, frnht;
printf("Taper le poids en livres:\n");
scanf("%d", &nblivre);
printf("Taper la temperture en degres farenheit:\n");
scanf("%f", &frnht);
cels = ((frnht - 32) / 9) * 5;
kg = 0.454 * nblivre;
printf("\nLe patient pese %.1f kg, a une temperature de %.1f degres", kg, cels);
fflush(stdin);
getchar();
printf("Rentrer le statut civil:\n");
c = getchar();
while(getchar() != '\n') ;
getchar();
switch (c)
{
case 'c':
case 'C':
printf("celibataire.");
break;
case 'a':
case 'A':
printf("un autre cas.");
break;
case 'm':
case 'M':
printf("marie.");
break;
case 'd':
case 'D':
printf("divorce.");
break;
printf("\n");
return 0;
}
}