#include <stdio.h>
#include <iostream>
float mult(float count,...)
{
float comp=1.0;
for(float *ptr=&count; count>0; count--)
{
comp*=*(++ptr);
}
return comp;
}
int main()
{
std::cout<<"Composition of the number 1.0,4.0,94.0 = "<<mult(3.0,1.0,4.0,94.0)<<std::endl;
}
#include <cstdarg>
)?