Since you know that the expected value is n*p, I'm not sure why you are asking this question. However, maybe you want to be able to compute it from basic principles. For a discrete distribution, the expected value is the sum of x*PDF(x), where x ranges over the domain of the distribution. For the binomial distribution, x takes integer values on the interval [0, NTrials], where NTrials=100 is number of trials. Thus, you could compute the expected values by running the following SAS DATA step:
data Want;
/* the expected value is sum(x*PDF(x), x=0,1,2,...,NTrials) */
p = 0.78; NTrials = 100;
Expected = 0;
do n = 0 to NTrials;
Expected + n*PDF("Binomial", n, p, NTrials);
end;
output;
/* the expected value is sum(x*PDF(x), x=0,1,2,...,NTrials) */
p = 1-p;
Expected = 0;
do n = 0 to NTrials;
Expected + n*PDF("Binomial", n, p, NTrials);
end;
output;
drop n;
run;
proc print data=Want;
run;