The while statement does not accept a comma-separted list,mean that you cannot do while(,,,,,,) otherwise if you want to check various condition ,you can use some logical operators like && and || exp
while(condition||condition)
this another version of your program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# include <iostream>
usingnamespace std;
int main ()
{
longlongint n, c;
cin >> n;
c = 1;
while (n>1)
{
n = n / 2;
c++;
}
cout << c << endl;
return 0;
}