This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
console.log("hello i am jagdish kumar") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int fun(int num); | |
int main() | |
{ | |
int num; | |
printf("Enter Number: "); | |
scanf("%d", &num); | |
printf("\nDecimal To Binary : %d", fun(num)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void fun(int *, int *, int *); | |
int main() | |
{ | |
int a, b, c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
long fact(int); | |
int main() | |
{ | |
int x, i = 1; | |
float fn = 1, sum = 0; | |
printf("Enter value of x="); | |
scanf("%d", &x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int sum(int); | |
int main() | |
{ | |
int num; | |
printf("Number of term "); | |
scanf("%d", &num); | |
printf("sum of runnig series =%d", sum(num)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int fun(int num); | |
int main() | |
{ | |
int num; | |
printf("Enter Number: "); | |
scanf("%d", &num); | |
printf("Decimal To Binary: %d", fun(num)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* fibonacci series*/ | |
#include <stdio.h> | |
int fibonacci(int i); | |
int main() | |
{ | |
int temp; | |
printf(" fibonacci seriese s="); | |
for (int i = 1; i <= 25; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* using recursion*/ | |
#include <stdio.h> | |
void prime(int); | |
int main() | |
{ | |
int num; | |
printf(" Enter a number "); | |
scanf("%d", &num); | |
prime(num); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*using recursion */ | |
#include <stdio.h> | |
int digitsum(int ); | |
int main() | |
{ | |
int num, sum; | |
printf("Enter a number "); | |
scanf("%d", &num); | |
sum = digitsum(num); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* finding n th term of fibnoci series*/ | |
#include <stdio.h> | |
int fibnoci(int i); | |
int main() | |
{ | |
int fib, n; | |
printf(" Enter number :"); | |
scanf("%d", &n); | |
fib = fibnoci(n); |
NewerOlder