This repository contains a collection of exercises written in the Jcoco language, which is a simple educational programming language often used to teach basic programming concepts.
To get started with these exercises, you'll need to have the Jcoco interpreter installed on your machine. If you haven't installed it yet, you can download it from the official Jcoco website or follow the installation instructions provided in the documentation.
This repository includes the following exercises:
- AleatorioParcial.casm: A program that generates random numbers and performs specific tasks based on the random values.
- RaizParcial.casm: Calculates the square root of a given number using a specific algorithm.
- ejemplo_for.casm: Demonstrates the use of 'for' loops in Jcoco to iterate over a set of values.
- ejemplo_if.casm: An example of conditional statements ('if') in Jcoco, used to make decisions in the program.
- leerTeclado.casm: A program that reads input from the keyboard and processes the data accordingly.
- recursion.casm: An example of how to implement recursive functions in Jcoco.
To run any of the exercises, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/your-username/jcoco-exercises.git
-
Navigate to the directory containing the exercise you want to run.
-
Use the Jcoco interpreter to execute the file:
jcoco <filename>.casm
Contributions are welcome! If you have any suggestions for improving the exercises or adding new ones, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.