This file contains hidden or 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
import face_recognition | |
import cv2 | |
# This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the | |
# other example, but it includes some basic performance tweaks to make things run a lot faster: | |
# 1. Process each video frame at 1/4 resolution (though still display it at full resolution) | |
# 2. Only detect faces in every other frame of video. | |
# PLEASE NOTE: This example requires OpenCV (the `cv2` library) to be installed only to read from your webcam. | |
# OpenCV is *not* required to use the face_recognition library. It's only required if you want to run this |
This file contains hidden or 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
def mul(a,b): | |
if(b>=1): | |
return a+mul(a,b-1) | |
else: | |
return 0 | |
a=int(input("Enter First Digit:\n")) | |
b=int(input("Enter Second Digit:\n")) | |
print("{0}*{1}={2}".format(a,b,mul(a,b))) |
This file contains hidden or 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
def encrypt(pt): | |
ct=pow(pt,13) | |
ct=ct%667 | |
print("\nYour Encrypt Data is:",ct) | |
def decrypt(ct): | |
pt=pow(ct,237) | |
pt=pt%667 | |
print("\nYour Decrypt Data is:",pt) | |
This file contains hidden or 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 main() | |
{ | |
int a,x,i=0; | |
printf("Here are 1,2,5,10,20,50,100 currency you will enter amount and program tell minimum currency required\n"); | |
printf("Please Enter Amount\n"); | |
scanf("%d",&x); |
This file contains hidden or 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 sqr(int x) | |
{ | |
int i=1; | |
int j; | |
while(j<=x) | |
{ | |
j=i*i; | |
i++; | |
} |
This file contains hidden or 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 main() | |
{ | |
double x; | |
scanf("%lf",&x); | |
double b=x*3.14/180; | |
printf("sin %.lf°=%.lf",x,sin(b)); | |
printf("\ncos %.lf°=%.lf",x,cos(b)); | |
printf("\ntan %.lf°=%.lf",x,tan(b)); |
This file contains hidden or 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 main() | |
{ | |
int x; | |
printf("enter 5 digit to reverse"); | |
scanf("%d",&x); | |
int a=x%10; | |
int u=x/10; |
This file contains hidden or 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 main() | |
{ | |
int x; | |
printf("please enter 5 digit to know sum"); | |
scanf("%d",&x); | |
int a=x%10; | |
int u=x/10; |
This file contains hidden or 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 power(int x,int y) | |
{ | |
int i=1; | |
int j=x; | |
if (y!=0) | |
{ | |
for(i; i<y; i++) | |
{ | |
x=j*x; |
NewerOlder