0

How can I do arithmetic operations and Print their values ?

Like in C :- int x,y,z ; // variables x=1; y=2; z=x+y; // their values printf("Addition=%d",Z); // print the value

2nd Jul 2017, 5:04 AM
sanket shiktode
7 odpowiedzi
+ 1
Okay please explain a little more, what exactly are you wanting to print?
2nd Jul 2017, 5:16 AM
Square Weber Interactive
Square Weber Interactive - avatar
+ 1
So are you trying to print the value of Z?
2nd Jul 2017, 5:21 AM
Square Weber Interactive
Square Weber Interactive - avatar
+ 1
in which language
2nd Jul 2017, 5:37 AM
‎ ‏‏‎Anonymous Guy
+ 1
in C#
2nd Jul 2017, 6:37 AM
sanket shiktode
+ 1
To print the value of Z simply say... print(z.ToString())
2nd Jul 2017, 7:05 AM
Square Weber Interactive
Square Weber Interactive - avatar
+ 1
you can debug.log(z) without calling ToString()
2nd Jul 2017, 7:06 AM
Square Weber Interactive
Square Weber Interactive - avatar
+ 1
You can add stuff like print(“hello world” + Z.ToString())
2nd Jul 2017, 7:07 AM
Square Weber Interactive
Square Weber Interactive - avatar