Menu
Coddy logo textTech

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 icon

Challenge

Easy

Write 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