Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. int main(void)
  5.  
  6. {
  7.  
  8. int heightBody, weightBody, heightAndWeightResult; // Variables
  9.  
  10. printf("Enter Body Weight: ", weightBody); //Manual Input
  11. scanf_s("%d", &weightBody);
  12.  
  13. printf("Enter Body Height: ", heightBody);// Manual Input
  14. scanf_s("%d", &heightBody);
  15.  
  16. heightAndWeightResult = heightBody + weightBody; // to calculate the height and weight
  17. printf("Body Result: ", heightAndWeightResult);
  18.  
  19. getch();
  20. return 0;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement