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
7 odpowiedzi
+ 1
Okay please explain a little more, what exactly are you wanting to print?
+ 1
So are you trying to print the value of Z?
+ 1
in which language
+ 1
in C#
+ 1
To print the value of Z simply say... print(z.ToString())
+ 1
you can debug.log(z) without calling ToString()
+ 1
You can add stuff like print(“hello world” + Z.ToString())