Mathematics
Lesson 8 of 32 in Coddy's Coding Problems course.
Your teacher wants you to make a program that for two numbers will calculate their sum, difference, product and quotient.
Challenge
EasyWrite a program that gets two natural numbers A and B from input and outputs their sum, difference, product and quotient.
Input
6 2
Output
8 4 12 3
Input
100 50
Output
150 50 5000 2
Try it yourself
#include <stdio.h>
int main() {
// Write code here
return 0;
}
All lessons in Coding Problems
1Course Introduction
Introduction2Easy Difficulty
SumEven or OddSquare & CubeMonthsMiddle digitTriangleMathematicsSum to NSum of numbersSortingCircle