C Program to Implement e^x Function
This C Program finds the value of exponential function e^(x),given x and n #include #include int x; int n,u; int fact(int n) { if (n==1) return (1); else return(n*fact(n-1)); } int findex() { int...
This C Program finds the value of exponential function e^(x),given x and n #include #include int x; int n,u; int fact(int n) { if (n==1) return (1); else return(n*fact(n-1)); } int findex() { int...
This C program finds the distace between two points using distance formula While compiling use -lm [linking math to incorporate math functions] eg: cc prog.c -lm OUTPUT: Welcome to Distance Formula Finder Software Enter...
This C program finds the sum of individual digits in a number and applies modular function to provide output as day ie:if sum of digits is 3 it prints Tuesday OUTPUT: Enter a three...
This C Program finds the destination using steps moved and the direction of movement it calculates and finds the final position #include main() { #define MAXWIDTH 10 /* let’s set the maximum width …...
This C Program Implements calculator using functions,functions perform the required operations and returns result to the calling function OUTPUT: Enter two Numbers for the Operation 12 534 Enter 1.Addition 2.Subtraction 3.Multiplication 4.Division 1 546
This C Program generates bills and formats the output and present it in a tabular view.the items can be changed and to incorporate more items dynamically loops can be added OUTPUT: Enter the quantity...
This C Program Converts binary number into decimal number,the base is initialized as 1 and keeps on multipied by a factor of 2. OUTPUT: Enter a Binary Number 110 Decimal Number is 6
This C Program finds the highest of 5 numbers it checks the numbers using if else if construct no loops are used,you can draw a flow diagram to check how the numbers are found...
This C Program is to Find the Second Highest Number and Highest Number in an Array,We Keep track of highest element and when an element greater than the current highest element it is swapped...
This C program is to find the sum of cos series given x and n #include main() { int i,n,x; float t,s; printf(“enter the value of x,n n”); scanf(“%d%d”,&x,&n); t=1; s=1; for(i=1;i
Recent Comments