Answer:
1. Get the number
2. Declare a variable to store the sum and set it to 0
3. Repeat the next two steps till the number is not 0
4. Get the rightmost digit of the number with help of remainder ‘%’ operator by dividing it with 10 and add it to sum.
5. Divide the number by 10 with help of ‘/’ operator
6. Print or return the sum
# include<iostream>
using namespace std;
/* Function to get sum of digits */
class gfg
{
public:
int getSum(float n)
{
float sum = 0 ;
while (n != 0)
{
sum = sum + n % 10;
n = n/10;
}
return sum;
}
};
//driver code
int main()
{
gfg g;
float n = 687;
cout<< g.getSum(n);
return 0;
}
Explanation:
Answer:
Food preservation.
Explanation:
Food preservation can be defined as an art that typically deals with the process of preventing food spoilage by reducing or mitigating the growth of microorganisms and other external factors while maintaining the nutritional value, flavor and texture of the food.
Some of the factors that causes food spoilage include microorganisms (bacteria, yeast and molds), temperature, moisture content, oxidation etc.
Hence, food preservation is the art of prolonging the life of the food items that are available.
Basically, there are physical, chemical and biological methods which can be used to prolong the life of food items and thus sustaining the edibility and nutritional value of foods. <em>These methods are;</em>
1. Freezing.
2. Pasteurization.
3. Drying.
4. Retorting.
5. Thermal sterilization.
6. Fermentation.
7. Irradiation.
The Reading Pane
The reading pane in Outlook can be used to view and work with items that are in the inbox folder. Sometimes, this feature might not visible when working with Outlook. The reading pane can be positioned to the right, bottom, or hidden completely. To unhide it, click the View menu, click the Reading pane and then select the ON option to turn it on