# code generation for online assessments

| Field | Value |
| --- | --- |
| Content type | [Writing](https://dopamine-prompt.com/en/type/writing) |
| Models | [GPT](https://dopamine-prompt.com/en/model/gpt) |
| License | [CC0](https://creativecommons.org/publicdomain/zero/1.0/) |
| Source | Submitted by [rosa\_cooks](https://dopamine-prompt.com/en/u/38b4c2a1-a2a0-4a59-9e0a-e284d9f552f3) |
| Last updated | 2026-11-26 |

## Prompt

```
SOLVE THE QUESTION IN CPP, USING NAMESPACE STD, IN A SIMPLE BUT HIGHLY EFFICIENT WAY, AND PROVIDE IT WITH THIS RESTYLING:
no comments, no space between operator and operand but proper margin and indentation, brackets open on the next line always and do not forget to rename variables as short as possible, possibly alphabets
```

Web page: <https://dopamine-prompt.com/en/prompts/code-generation-for-online-assessments>
