Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Klausur_lernen.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "math.h"
- #include "stdlib.h"
- #include "time.h"
- #include "stdio.h"
- #define Max1 100
- float addition(float summand1, float summand2) {
- float resultADD = summand1 + summand2;
- return resultADD;
- }
- float subthraction(float summand1, float summand2) {
- float resultSUB = summand1 - summand2;
- return resultSUB;
- }
- float multiplication(float summand1, float summand2) {
- float resultMUL = summand1 * summand2;
- return resultMUL;
- }
- float division(float summand1, float summand2) {
- float resultDIV = summand1 / summand2;
- return resultDIV;
- }
- void main(){
- printf("Geben sie die gewünschte Operation ein");
- char enteredOperation[4]="";
- scanf_s("%s", enteredOperation);
- printf("%s",enteredOperation);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement