0

How to declare integer variable and set its value as 5?

25th Apr 2018, 2:38 PM
Manoj Kanna
Manoj Kanna - avatar
5 odpowiedzi
+ 3
python a =5 c# int a = 5; js var a = 5; java int a= 5;
25th Apr 2018, 3:00 PM
kaliki chandu
kaliki chandu - avatar
+ 3
Python & Ruby: x = 5 JS & Swift: var x = 5 Java & C++ & C#: int x= 5 PHP: $x=5 Hope this was helpful!😁
25th Apr 2018, 6:05 PM
Paul Grasser
Paul Grasser - avatar
+ 2
kaliki, would you add a semi-colon for those languages where the statement must end with a semi-colon? ☺ For more clarity
25th Apr 2018, 3:03 PM
cyk
cyk - avatar
0
int var =5 is the answer
25th Apr 2018, 3:21 PM
Manoj Kanna
Manoj Kanna - avatar