2019-01-21 06:06:03

hello every one.
I am prateek from india, I am learning bgt these days and I have an idea of creating program but I don't know how to create.
I only know to flash alert message, but, I am having issues in creating dynamic menu because every time I get aerror: dynamic menu is not the data type.
so idea is,
think any random number in your mind, multiply it by 2, then add any random number which program gives you, suppose 18 to it.
then divide the number by 2
then subtract the number which you thought.
your answer is 9
the program will answer correct every time because which ever random number it will give to the person, it will divide it by 2 and will tell the person correct answer.
you can try with your friend also.
please help me
regards.

allow me to speak more,
catch me on Twitter
or, Mastodon

2019-01-21 07:09:36

//declare vars.
int num_entered,rand_num;
void main()
{
string f=input_box("num","Enter number");
if(f=="") exit();
num_entered=string_to_number(f);
rand_num=random(1,20);
num_entered+=rand_num;
num_entered=num_entered*2;
num_enterd-=rand_num;
alert("result",""+num_entered);
}

Ivan M. Soto.
Feel free to check out my work and services.
http://ims-productions.com