No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[CODE]#include <stdio.h> float pounds = 0, inches = 0, BMI = 0; float kg = 0, meters = 0; char input[100], choice; int main() { start: do { printf("\n\nThis program is used to calculate the BMI of a person.\n\n\n"); printf("What kind of BMI do you want to calculate?\n"); printf("(Imperial(i/I) or … |
|
Hi all. I have a problem with my calculator. #include <stdio.h> int a, b; /* value entered by user */ char c, choice; int main() { printf("\nThis program is a calculator.\n"); printf("Enter your calculation: "); scanf("%d%c%d", &a,&c,&b); if (c=='+') printf("The answer is %d", a+b); if (c=='-') printf("The answer is %d", … |
|
Hello everyone! I'm new here and my main purpose is to learn as much C as possible from this forum. I might need help from time to time so please bear with me yeah =) See ya guys around. |