Question: I am writing a program in c and I am not getting the proper bell's numbers. I'M NOT looking for some to give me a

I am writing a program in c and I am not getting the proper bell's numbers. I'M NOT looking for some to give me a program I just need help with my program which I think is almost there. I'm going off the equation I am writing a program in c and I am not getting . I'm not sure if I'm calculating the equation properly.

#include

float factorial(float num) { float result = 1; for(int i = 1; i

void bells(int n) { float sum = 1; printf("Bell Number [0] = 1 "); for(int i = 1; i

int main() { int sum = 0; int restart = 1; //while is used to restart program on users request while(restart == 1) { int userNum; printf("Enter a number :"); scanf("%d",&userNum);

bells(userNum); //Restarting program on users request printf(" Restart program? (1 = yes : 0 = no) "); scanf("%d", &restart); }//end of restart while }//end of main

n! k!(n k)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!