int sum = 0;
double product = 1;
cout<<”Enter the amount”;
cin>>count;
while (sum < 20 || count >= 0) {
sum = sum + count;
Count--;
}
for(count; count <= 9; count ++) {
product = product * count;
}
cout << “the sum is:”<<sum;
cout << “the product is:”<<product;