DEV Community

user19870
user19870

Posted on

cppsp v1.4 -- variables declaration with multi variables support : var a,b,c= 1,2,3 int

  • var.....type: declare variables with/without values. Support multi variables and type can be written as int/float/char/string/bool. <{1+1}> is a value but 1+1 not(it's expression)
  • var......type:
import  string,iostream
var a,c,d =  1,
<{(2*2+6)/2}>
,4 int
var b = "hello world" string
var f1,f2,f3 float
var c1 char
var b1 = <{1+1==2}> bool
input(f1)
print(a," ",c," ",d," ",b," ",b1," ",f1)
Enter fullscreen mode Exit fullscreen mode


Top comments (0)