Mathematics
Lektion 8 von 32 im Kurs Programmieraufgaben von Coddy.
Dein Lehrer möchte, dass du ein Programm erstellst, das für zwei Zahlen deren Summe, Differenz, Produkt und Quotient berechnet.
Aufgabe
EinfachSchreiben Sie ein Programm, das zwei natürliche Zahlen A und B aus der Eingabe erhält und deren Summe, Differenz, Produkt und Quotient ausgibt.
Eingabe
6 2
Ausgabe
8 4 12 3
Eingabe
100 50
Ausgabe
150 50 5000 2
Probier es selbst
#include <stdio.h>
int main() {
// Code hier schreiben
return 0;
}
Alle Lektionen in Programmieraufgaben
1Course Introduction
Introduction2Easy Difficulty
SumEven or OddSquare & CubeMonthsMiddle digitTriangleMathematicsSum to NSum of numbersSortingCircle