Answer:
double singleWeight = totalWeight/quantity;
Step-by-step explanation:
Considering you already have two different declared and assigned variables, in C language you would have the following lines:
#include <stdio.h>
int main()
{
double totalWeight = 5.2 ;
int quantity = 2;
double singleWeight = totalWeight/quantity;
// Displays operation
printf("%f / %d = %f", totalWeight, quantity, singleWeight);
return 0;
}
It is very important to keep in mind that the type of variable of singleWeight is double due to the expecting number is the result of the division where the dividend is double too.