hi all,
I have create a variable (int_A) and assigned value 30. When i am trying to print it writeline i am facing an error?
Thanks
hi all,
I have create a variable (int_A) and assigned value 30. When i am trying to print it writeline i am facing an error?
Thanks
Hi @Indhu_M
Write Line accepts only String, but your variable int_A is an Integer.
Use as below, it will work fine.
Please share the details of the error you are facing. It would be easy for us to help.
Hi @Indhu_M ,
This happens because Write Line expects a String, but int_A is an Integer.
Fix it by converting the integer to string:
Write Line → int_A.ToString
After this, it will print 30 without any error.