Message Boards Message Boards

0
|
3888 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

A very simple addition program

Posted 3 years ago

Nice to meet you. I am a beginner beginner. I'm going to start with a very simple addition program... I want to show the case of true and false in the pop-up window. How can I do it?

Attachments:
POSTED BY: wkdrpqkfk Jang
3 Replies
Posted 3 years ago

Dynamic[MatchQ[x + y, z]]was the answer!! I found it. Thank you.

But, what if you check true or false and want to reset it again?

POSTED BY: wkdrpqkfk Jang
Posted 3 years ago

Column[{Row[{InputField[Dynamic[x], Number]; x = RandomInteger[50], "+", InputField[Dynamic[y], Number]; y = RandomInteger[50], "=", InputField[Dynamic[z], Number]}], PopupWindow[ Button["Click Here"], {Dynamic[MatchQ[x + y, z]], Button["Reset", DialogReturn[***Refresh[]***]]}]}]

I want to go back to the beginning when I press the button, but I don't know. Still, it's fun to know one by one.

POSTED BY: wkdrpqkfk Jang

Welcome to Wolfram Community! Please make sure you know the rules: https://wolfr.am/READ-1ST

The rules explain how to format your code properly in both your post and reply. If you do not format code, it may become corrupted and useless to other members. Please EDIT your post and make sure code blocks start on a new paragraph and look framed and colored like this.

int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

You can also embed notebook or attach notebook.

enter image description here

POSTED BY: Moderation Team
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract