mathclass.md - brainchildservices/curriculum GitHub Wiki

SLIDE-TITLE

C# MATH CLASS

The C# Math class has many methods that allows you to perform mathematical tasks on numbers.

SLIDE-1

Self learn about C# Math operators: https://www.geeksforgeeks.org/c-sharp-math-class/

SLIDE-2

Complete following questions using C# Math operators

  1. Write a program to find the greater and smaller value of two variables( Compare 2 Int32 numbers, 2 decimal numbers, 2 byte numbers).
    Expected output:
    image

SLIDE-3

  1. Write a program to calculate the value that results from raising 3 to a power 6( Find 3 6 )

Expected output:
image

SLIDE-4

  1. Write a program to find the whole number and fractional part from a positive and a negative Decimal number

Expected output:
image

SLIDE-5

  1. Write a program to print the value of PI. And then print the value of PI rounded off to 5 decimal places.
    Expected output:
    image
⚠️ **GitHub.com Fallback** ⚠️