This repository contains a collection of simple Golang programs designed to demonstrate various programming concepts and functionalities. Each program is described below with its respective functionality and expected output.
- If the score is less than or equal to 40, the grade is D.
- If the score is less than 61, the grade is C.
- If the score is less than 81, the grade is B.
- Otherwise, the grade is A.
- Your score is 50.
- Sorry, you did not pass.
- Displays odd numbers from 1 to 100.
- Calculates the area of a triangle given the base and height.
- Displays the number of characters in a string.
- Example input: "Programmer".
- Calculates the area of a triangle.
- Calculates the area of a rectangle given the length and width.
- Calculates the area of a circle with π = 3.14 and radius = 7.
- Displays even numbers from 1 to 75.
- Creates an array containing the names of the days from Monday to Sunday.
- Example output: "Day 1 is Monday", "Day 2 is Tuesday", etc.
- Displays the first 5 Fibonacci numbers with the first term = 6 and the second term = 9.
- Creates a right-angled triangle using asterisks.
- Creates a full triangle using asterisks.
- A basic calculator program.
- Calculates the area of a rectangle.
- Calculates the area of a rectangle.
- Calculates sine, cosine, and tangent angles.
- Calculates density.
- Counts from 1 to 1,000,000 and displays the record.
- Calculates the surface area of a cube.
- Displays odd numbers from 1 to 75.
- Demonstrates input and output operations.
Powered by Reza