C Program to Implement e^x Function
This C Program finds the value of exponential function e^(x),given x and n [cc lang=”c”] #include #include int x; int n,u; int fact(int n) { if (n==1) return (1); else return(n*fact(n-1)); } int findex()...
its about tech
This C Program finds the value of exponential function e^(x),given x and n [cc lang=”c”] #include #include int x; int n,u; int fact(int n) { if (n==1) return (1); else return(n*fact(n-1)); } int findex()...
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 [cc lang=”c”] #include #include main() { double x1,y1;...
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 [cc lang=”c”] #include main()...
This C Program finds the destination using steps moved and the direction of movement it calculates and finds the final position [cc lang=”c”] #include main() { #define MAXWIDTH 10 /* let’s set the maximum...
This C Program Implements calculator using functions,functions perform the required operations and returns result to the calling function [cc lang=”c”] #include int n,a,b,res; void addnum(int a,int b) { printf(“%d”,a+b); } void subnum(int x,int y)...
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 [cc lang=”c”] #include main()...
This C Program Converts binary number into decimal number,the base is initialized as 1 and keeps on multipied by a factor of 2. [cc lang=”c”] #include main() { int num; int bnum; int dec=0,base=1,rem;...
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 [cc lang=”c”] #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