I tried by first asking how many sigs they would like and then substituted in front of f where a number would be. Pls advise me!
#include <stdio.h>
#include <math.h>
int main(void) {
int numberofsigs;
printf("How many significant figures would you like in your pi: ");
scanf("%d", &numberofsigs);
printf(" +&.(%d)f\n", M_PI,numberofsigs);
return 0;
}
Thank you.