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 <stdlib.h> | |
void fibo(int end); | |
int main() | |
{ | |
fibo (10); | |
return 0; | |
} |
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 main() | |
{ | |
int x,isprime=1; | |
scanf("%d",&x); | |
if(x==1 || x==2) | |
{ | |
printf("Prime Number %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> | |
void pfact(int n); | |
int main() | |
{ | |
pfact(147); | |
return 0; | |
} |
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 toroman(int y); | |
int main() | |
{ | |
toroman(1525); | |
return 0; | |
} |
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 fibo(int n, int first, int second); | |
int main() | |
{ | |
int first = 0, second = 1; | |
fibo(10, first, second); | |
return 0; |
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> | |
float sine(int deg); | |
int fact(int n); | |
int main() | |
{ | |
int x = 90; | |
printf(" %f ",sine(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
<?php | |
$file = './path/to/the.pdf'; | |
$filename = 'Custom file name for the.pdf'; /* Note: Always use .pdf at the end. */ | |
header('Content-type: application/pdf'); | |
header('Content-Disposition: inline; filename="' . $filename . '"'); | |
header('Content-Transfer-Encoding: binary'); | |
header('Content-Length: ' . filesize($file)); | |
header('Accept-Ranges: bytes'); |
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> | |
// Video explanation in Bangla at | |
// https://youtu.be/c8LhCLnU5bc | |
int main() | |
{ | |
int x = 3; | |
int result = factorial(x); | |
printf("Factorial of 3 = %d",result); |
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<string.h> | |
int main() | |
{ | |
char xyz[] = "Hey, I have got LOTS of SPACEEEE"; | |
char x[50]; | |
int i=0,j=0; | |
for(i=0; j<= strlen(xyz);) |
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 bigmod(int a, int p, int m) | |
{ | |
int res = 1; | |
int x = a; | |
while(p) { | |
if(p&1) //odd | |
{ | |
res =(long long) (res*x)%m; |