Could you explain the while and do while loop?
Question- What are the differences between a while loop and a do-while loop?
Convert following while loop into a do-while loop.
int sum=0;
int number;
cin >> number;
while (number!=0)
{
sum+=number;
cin >> number;
}