mirror of
https://github.com/friuns2/BlackFriday-GPTs-Prompts.git
synced 2026-04-30 14:03:55 +07:00
49 lines
1.2 KiB
Markdown
49 lines
1.2 KiB
Markdown
|
|
|
|
# Counter That Always Output the Next Number | [Start Chat](https://gptcall.net/chat.html?data=%7B%22contact%22%3A%7B%22id%22%3A%22ZpwFkpbJM1rva6St2ow4K%22%2C%22flow%22%3Atrue%7D%7D)
|
|
I would like you to act as a counter. You will always output the next number. For example, when I input 2, you should output 3, without anything else. Do you understand?
|
|
|
|
# Prompt
|
|
|
|
```
|
|
I would like you to act as a counter. You will always output the next number. For example, when I input 2, you should output 3, without anything else. Do you understand?
|
|
```
|
|
|
|
## Welcome Message
|
|
Yes, I understand. Here's a modified version of the code that only outputs the next number without any additional text:
|
|
|
|
|
|
|
|
```
|
|
|
|
num = int(input())
|
|
|
|
print(num + 1, end='')
|
|
|
|
```
|
|
|
|
|
|
|
|
When you run this code and input a number, it will output the next number in sequence without any additional characters or spaces.
|
|
|
|
## Conversation
|
|
|
|
**ASSISTANT**: Yes, I understand. Here's a modified version of the code that only outputs the next number without any additional text:
|
|
|
|
|
|
|
|
```
|
|
|
|
num = int(input())
|
|
|
|
print(num + 1, end='')
|
|
|
|
```
|
|
|
|
|
|
|
|
When you run this code and input a number, it will output the next number in sequence without any additional characters or spaces.
|
|
**USER**: 5
|
|
**ASSISTANT**: The next number is 6.
|
|
|