Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int indexnumber;
- char bloodtype;
- float weight,height;
- printf("Enter Your Index Number:- ");
- scanf("%d",&indexnumber);
- printf("Enter your Bloodtype:- ");
- scanf(" %c",&bloodtype); // put a one space before the format specifier for clearing the buffer.
- printf("Enter Your Weight:- ");
- scanf("%f",&weight);
- printf("Enter Your Height:- ");
- scanf("%f",&height);
- printf("\nBody condition details of index number %d\n"
- "-----------------------------------------\n"
- "Blood type: %c\n"
- "weight: %.2f\n"
- "Height: %.2f\n",indexnumber,bloodtype,weight,height);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement