function anythink():Number
{
var priceone:Number =3.00;
var pricetwo:Number =2.90;
return (priceone+pricetwo);
}
trace(anythink());
here you can change "anythink" to your name or anything you want. ex- function deepak():Number Than trace(deepak());
You can change priceone and pricetwo to anythink you want. when var hunters:Number =79; var com:Number =80
than return (hunters+com);
change '-' to Subtraction, '*' to multiply and '/' to division. I hope you enjoy this tutorials.
No comments:
Post a Comment