An open API service indexing awesome lists of open source software.

https://github.com/luhur65/math-go

implementasi belajar golang dasar
https://github.com/luhur65/math-go

golang golang-cli math quiz

Last synced: 3 months ago
JSON representation

implementasi belajar golang dasar

Awesome Lists containing this project

README

        

# Math-Go

**Math-Go** is a beginner-friendly math quiz program developed using Golang. It generates random math problems and allows users to practice basic addition through a simple quiz interface. This project is aimed at helping beginners understand basic Golang syntax while having fun solving math problems.

**Warning:** This project is intended for educational purposes only. It is referenced from [Kuis Matematika](https://github.com/luhur65/kuis-matematika) made with Python.

## Features
- Simple interactive command-line quiz
- Randomly generated math problems (addition only)
- Tracks user input and provides feedback (correct/incorrect answers)
- Beginner-friendly Golang code

## Installation

1. Clone this repository:
```bash
git clone https://github.com/yourusername/math-go.git
```

2. Navigate to the project directory:
```bash
cd math-go
```

3. Run the program:
```bash
go run main.go
```

## How to Use

1. Enter your name when prompted.
2. The program will present 10 addition questions. Simply input your answers when prompted.
3. After each question, the program will tell you if your answer was correct or incorrect and show the correct answer if needed.

## Example Output
```bash
Enter your name: John
Math Quiz By Golang Welcome, John

7 + 3 = Jawaban : 10 Benar!
5 + 9 = Jawaban : 12 Salah! Jawaban benar = 14
```

## Goals

- Teach basic Go syntax (variables, functions, loops, user input, and random number generation).
- Provide a fun way to practice math skills.
- Serve as a starting point for more complex quiz applications.

## Future Improvements

- Add support for subtraction, multiplication, and division questions.
- Implement a scoring system.
- Allow users to set the difficulty level.

## License

This project is licensed under the MIT License.