Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int HDL, LDL, triglyserida;
- float total, rasio;
- printf("HDL: "); scanf("%i", &HDL);
- printf("LDL: "); scanf("%i", &LDL);
- printf("Triglyserida: "); scanf("%i", &triglyserida);
- total = (float)LDL + (float)HDL + ((float)triglyserida / 5);
- printf("Total: %.0f\n",total);
- rasio = total / (float)HDL;
- printf("Rasio total / HDL: %f\n",rasio);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement