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:
Verifying my Blockstack ID is secured with the address 1Gp1jqEktVpJzKbckjLgSZbyuzw4XCrm5 https://explorer.blockstack.org/address/1Gp1jqEktVpJzKbckjLgSZbyuzw4XCrm5 |
I hereby claim:
To claim this, I am signing this object:
#include<stdlib.h> | |
#include<stdio.h> | |
void main() { | |
long num, div, n1; | |
int flag, digit, pos, tot_dig; | |
printf("\nEnter a number: "); | |
scanf("%ld", &num); | |
if(num == 0) { |
#include <stdio.h> | |
#include <stdlib.h> | |
main() | |
{ | |
char data[100]; | |
double num1, num2; | |
printf("\nPlease enter a number ==> " ); | |
gets(data); |
public static bool IsFileLocked(FileInfo file) { | |
FileStream stream = null; | |
if(!file.Exists) | |
return false; | |
try { | |
stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.None); | |
} catch (IOException) { | |
// the file is unavailable because it is: |
#include <stdio.h> | |
int main () { | |
int num_denominations, coin_list[100], use_these[100], i, owed; | |
printf("Enter number of denominations : "); | |
scanf("%d", &num_denominations); | |
printf("\nEnter the denominations in descending order: "); | |
for(i=0; i< num_denominations; i++) { |
#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> | |
#include<stdlib.h> | |
int main() { | |
int d, m, y, year, month, day, i; | |
printf("Enter date of birth (DD MM YYYY) :"); | |
scanf("%d %d %d", &d, &m, &y); | |
if( (d > 31) || (m > 12) || (y < 1900 || y >= 2100) ) | |
{ |
#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); |
/* C Program to demonstrate increment and decrement operators */ | |
main() | |
{ | |
/* | |
* ++i -> i incremented before i is used. | |
* --i -> i decremented before i is used. | |
* j++ -> j is incremented AFTER j has been used. | |
* j-- -> j is decremented AFTER j has been used. | |
*/ |