Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * @file UE3_Aufgabe1.c
- * @brief File contains the main program
- * @author Emil Wojciechowicz
- * @date 30.03.2015
- */
- #include<stdio.h>
- #include<conio.h>
- #include<math.h>
- #include<stdlib.h>
- /**
- * @fn int main(void)
- * @brief calculate
- * @param void
- * @return EXIT_SUCCESS
- * @author Emil Wojciechowicz
- * @date 30.03.2015
- */
- int main(void)
- {
- float fa, fb, fc;
- printf("Folgende Gleichung wird berechnet\n c = a - 4.5 * b - b * 10.2\n\n");
- printf("===========================\n");
- printf("Geben Sie nun Werte fuer a und b ein\n");
- printf("Geben Sie den Wert fuer a ein ");
- scanf_s("%f", &fa);
- printf("Geben Sie den Wert fuer b ein ");
- scanf_s("%f", &fb);
- fc = (fa - (4.5f * fb) - (fb * 10.2f));
- printf("Das ergebnis ist = %.2f\n", fc);
- _getch();
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement