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'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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started