I hereby claim:
- I am snadahalli on github.
- I am snadahalli (https://keybase.io/snadahalli) on keybase.
- I have a public key ASC9T8GbT8mh26-3Ueg0xikukd4b6iI8GhO8gFlH7AB8Two
To claim this, I am signing this object:
#include <stdio.h> | |
void main() { | |
int A[50][50]; | |
int i, j, M, N; | |
int size; | |
int rowsum, columnsum, diagonalsum; | |
int magic = 0; | |
printf("Enter the order of the matrix:\n"); | |
scanf("%d %d", &M, &N); |
/*********************************************************** | |
* You can use all the programs on www.c-program-example.com | |
* for personal and learning purposes. For permissions to use the | |
* programs for commercial purposes, | |
* contact info@c-program-example.com | |
* To find more C programs, do visit www.c-program-example.com | |
* and browse! | |
* | |
* Happy Coding | |
***********************************************************/ |
#include<stdio.h> | |
int a[20][20], q[20], visited[20], n, i, j, f = 0, r = -1; | |
void bfs(int v) { | |
for(i = 1; i <= n; i++) | |
if(a[v][i] && !visited[i]) | |
q[++r] = i; | |
if(f <= r) { | |
visited[q[f]] = 1; | |
bfs(q[f++]); |
#include <stdio.h> | |
/* | |
* Function to convert a given decimal number to its | |
* hexadecimal equivalent. | |
*/ | |
int decimal_to_hex(long number, char *hexstr, int pos) { | |
long i; | |
int new_position, n; | |
char hexchar; |
#include<stdio.h> | |
/* | |
* Function to convert a given binary number to | |
* its decimal equivalent. | |
*/ | |
int binary_to_decimal(int num) { | |
int rem, base = 1, decimal_number = 0; | |
while( num > 0) { | |
rem = num % 10; |
Verifying my Blockstack ID is secured with the address 1Gp1jqEktVpJzKbckjLgSZbyuzw4XCrm5 https://explorer.blockstack.org/address/1Gp1jqEktVpJzKbckjLgSZbyuzw4XCrm5 |
// C program to find the Binomial coefficient. Downloaded from www.c-program-example.com | |
#include<stdio.h> | |
void main() { | |
int i, j, n, k, min, c[20][20]={0}; | |
printf("This program is brought to you by www.c-program-example.com\n" ); | |
printf("\n Enter the value of n: "); | |
scanf("%d", &n); | |
printf("\n Enter the value of k: "); | |
scanf("%d", &k); |
I hereby claim:
To claim this, I am signing this object:
/*********************************************************** | |
* You can use all the programs on www.c-program-example.com | |
* for personal and learning purposes. For permissions to use | |
* the programs for commercial purposes, | |
* contact info@c-program-example.com | |
* To find more C programs, do visit www.c-program-example.com | |
* and browse! | |
* Happy Coding | |
***********************************************************/ | |
/*********************************************************** | |
* You can use all the programs on www.c-program-example.com | |
* for personal and learning purposes. For permissions to use | |
* the programs for commercial purposes, | |
* contact info@c-program-example.com | |
* To find more C programs, do visit www.c-program-example.com | |
* and browse! | |
* | |
* Happy Coding | |
***********************************************************/ |