Menu
Coddy logo textTech

Basic Operations

Part of the Fundamentals section of Coddy's C# journey — lesson 39 of 69.

challenge icon

Challenge

Beginner

Add the basic arithmetic operations (addition, subtraction, multiplication, and division) on num1 and num2. Store the results in variables named sum, difference, product, and quotient, respectively.

Print the results in the following format (replace each placeholder with the actual computed value):

Sum: [sum]
Difference: [difference]
Product: [product]
Quotient: [quotient]

For example, if sum is 74.3, print Sum: 74.3.

Remove any other print operation you have in your code, but leave the Welcome message.

Try it yourself

using System;

public class Program {
    public static void Main(string[] args) {
        
    }
}

All lessons in Fundamentals