Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- void main(void)
- {
- float total_gold_price;
- float gold_price_per_kyat;
- float kyat;
- float pae;
- float yway;
- float gold_weight;
- printf("Please enter gold price per kyat : ");
- scanf_s("%f", &gold_price_per_kyat);
- printf("Please enter kyat : ");
- scanf_s("%f", &kyat);
- printf("Please enter pae : ");
- scanf_s("%f", &pae);
- printf("Please enter yway : ");
- scanf_s("%f", &yway);
- gold_weight= kyat + (pae/16) + yway /(16*8);
- total_gold_price = gold_price_per_kyat * gold_weight;
- printf("total gold weight is %f ", gold_weight);
- printf("total gold price is %f ", total_gold_price);
- _getch;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement