All pastes #454370 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-23 15:44 UTC
rendered paste body
#include <stdio.h>
#include <math.h>
#include <stdlib.h>

int main(void) {

int iCount=1;
int iMax;
int iFact=1;
printf("Please input the maximum value:");
scanf("%i", &iMax);
while(iCount<iMax){
iFact = (iFact + ((iCount)*(-1)^(iCount)));
iCount++;
}
printf("The resultant value is %i", iFact);
return(1);
}