C Program to Implement Floyds Triangle
This is the Implementation of Floyd’s triangle in C,Enter the Number of Lines it will print the Triangle with Number [cc lang=”c”] #include main() { int num=1; int i,j,n; printf(“Enter the Number of Rowsn”);...
its about tech
This is the Implementation of Floyd’s triangle in C,Enter the Number of Lines it will print the Triangle with Number [cc lang=”c”] #include main() { int num=1; int i,j,n; printf(“Enter the Number of Rowsn”);...
This is the C Program which Implements Fibonacci series upto user defined limit n [cc lang=”c”] #include int main() { int n; //Variable to store no of terms int first=0; //First term initializing with...
This is the implementation of factorial program in c,using recursion and loops USING FOR LOOP: [cc lang=”c”] #include main() { int i; int f=1; int n; printf(“Enter any number n”); scanf(“%d”,&n); for(i=1;i
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;...
Recent Comments