-1

Can you set more then one variable to one value etc
Where you see n,n2 =3 i want to do something like that because i have many variables but its giving me an error

    int n,n2;
    int m,m2;

    n,n2 = 3
    m,m2 = 4
Beowulf Bjornson
  • 1,626
  • 1
  • 14
  • 24
Hashey100
  • 994
  • 5
  • 22
  • 47

1 Answers1

1

Try:

   int n,n2,m,m2;

   n = n2 = 3;
   m = m2 = 4;
Mariusz Jamro
  • 30,615
  • 24
  • 120
  • 162
Michele
  • 6,126
  • 2
  • 41
  • 45