Message Boards Message Boards

GROUPS:

A very simple addition program

Posted 7 days ago
149 Views
|
3 Replies
|
0 Total Likes
|

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:
3 Replies

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?

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.

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

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