From e1da40524f0da12945d0e4cef76f5fe30eeb4d3f Mon Sep 17 00:00:00 2001 From: TushaarG Date: Fri, 25 Oct 2019 13:37:44 +0530 Subject: [PATCH 1/5] First Program --- C/.gitignore | 1 - C/Fibonacci.c | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 C/Fibonacci.c diff --git a/C/.gitignore b/C/.gitignore index d6b7ef3..f935021 100644 --- a/C/.gitignore +++ b/C/.gitignore @@ -1,2 +1 @@ -* !.gitignore diff --git a/C/Fibonacci.c b/C/Fibonacci.c new file mode 100644 index 0000000..7bb8143 --- /dev/null +++ b/C/Fibonacci.c @@ -0,0 +1,17 @@ +#include +int main() +{ + int a=0,b=1,c=0,i=1,n; + printf("Enter the number of terms you want to see in fibonacci \n"); + scanf("%d",&n); + printf("\n%d\n%d",a,b); + while(i<=(n-2)) + { + c=a+b; + a=b; + b=c; + printf("\n%d",c); + i++; + } + return 0; +} From 7460182fdcfd52f8a91e08cc801c144721ee4ba1 Mon Sep 17 00:00:00 2001 From: TushaarG Date: Fri, 25 Oct 2019 16:04:42 +0530 Subject: [PATCH 2/5] First --- C/Fibonacci.c | 17 ----------------- C/calci.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 17 deletions(-) delete mode 100644 C/Fibonacci.c create mode 100644 C/calci.c diff --git a/C/Fibonacci.c b/C/Fibonacci.c deleted file mode 100644 index 7bb8143..0000000 --- a/C/Fibonacci.c +++ /dev/null @@ -1,17 +0,0 @@ -#include -int main() -{ - int a=0,b=1,c=0,i=1,n; - printf("Enter the number of terms you want to see in fibonacci \n"); - scanf("%d",&n); - printf("\n%d\n%d",a,b); - while(i<=(n-2)) - { - c=a+b; - a=b; - b=c; - printf("\n%d",c); - i++; - } - return 0; -} diff --git a/C/calci.c b/C/calci.c new file mode 100644 index 0000000..1fac38c --- /dev/null +++ b/C/calci.c @@ -0,0 +1,29 @@ +#include +int main() +{ + int a[5],i=0,s=0; + float avg=0.0; + printf("Enter five number\n"); + for(i=0;i<5;i++) + { + scanf("%d",&a[i]); + } + for(i=0;i<5;i++) + { + s=s+a[i]; + } + avg=s/5; + printf("\nThe numbers above average\n "); + for(i=0;i<5;i++) + { + if(a[i]>avg) + printf("%d\n",a[i]); + } + printf("\nThe numbers belove average\n"); + for(i=0;i<5;i++) + { + if(a[i] Date: Fri, 25 Oct 2019 16:35:55 +0530 Subject: [PATCH 3/5] Second From TG --- C/Patrun.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 C/Patrun.c diff --git a/C/Patrun.c b/C/Patrun.c new file mode 100644 index 0000000..381e53f --- /dev/null +++ b/C/Patrun.c @@ -0,0 +1,15 @@ +#include +int main() +{ + int i,j,c=8; + for(i=0;i<5;i++) + { + for(j=1;j<=c;j++) + printf(" "); + for(j=0;j<(2*i+1);j++) + printf("* "); + c=c-2; + printf("\n"); + } + return 0; +} From f4287c558461135b66f46067685735f49a001438 Mon Sep 17 00:00:00 2001 From: TushaarG Date: Fri, 25 Oct 2019 18:21:06 +0530 Subject: [PATCH 4/5] Second --- C/Patrun.c | 15 --------------- C/calci.c | 29 ----------------------------- C/ootpatang.c | Bin 0 -> 528 bytes 3 files changed, 44 deletions(-) delete mode 100644 C/Patrun.c delete mode 100644 C/calci.c create mode 100644 C/ootpatang.c diff --git a/C/Patrun.c b/C/Patrun.c deleted file mode 100644 index 381e53f..0000000 --- a/C/Patrun.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -int main() -{ - int i,j,c=8; - for(i=0;i<5;i++) - { - for(j=1;j<=c;j++) - printf(" "); - for(j=0;j<(2*i+1);j++) - printf("* "); - c=c-2; - printf("\n"); - } - return 0; -} diff --git a/C/calci.c b/C/calci.c deleted file mode 100644 index 1fac38c..0000000 --- a/C/calci.c +++ /dev/null @@ -1,29 +0,0 @@ -#include -int main() -{ - int a[5],i=0,s=0; - float avg=0.0; - printf("Enter five number\n"); - for(i=0;i<5;i++) - { - scanf("%d",&a[i]); - } - for(i=0;i<5;i++) - { - s=s+a[i]; - } - avg=s/5; - printf("\nThe numbers above average\n "); - for(i=0;i<5;i++) - { - if(a[i]>avg) - printf("%d\n",a[i]); - } - printf("\nThe numbers belove average\n"); - for(i=0;i<5;i++) - { - if(a[i] Date: Sat, 17 Oct 2020 20:26:12 +0530 Subject: [PATCH 5/5] Captcha --- Python/.gitignore | 2 - Python/.idea/Python.iml | 11 +++ .../inspectionProfiles/profiles_settings.xml | 6 ++ Python/.idea/misc.xml | 4 ++ Python/.idea/modules.xml | 8 +++ Python/.idea/vcs.xml | 6 ++ Python/.idea/workspace.xml | 68 +++++++++++++++++++ Python/captcha.py | 27 ++++++++ 8 files changed, 130 insertions(+), 2 deletions(-) delete mode 100644 Python/.gitignore create mode 100644 Python/.idea/Python.iml create mode 100644 Python/.idea/inspectionProfiles/profiles_settings.xml create mode 100644 Python/.idea/misc.xml create mode 100644 Python/.idea/modules.xml create mode 100644 Python/.idea/vcs.xml create mode 100644 Python/.idea/workspace.xml create mode 100644 Python/captcha.py diff --git a/Python/.gitignore b/Python/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/Python/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/Python/.idea/Python.iml b/Python/.idea/Python.iml new file mode 100644 index 0000000..8dc09e5 --- /dev/null +++ b/Python/.idea/Python.iml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Python/.idea/inspectionProfiles/profiles_settings.xml b/Python/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/Python/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/Python/.idea/misc.xml b/Python/.idea/misc.xml new file mode 100644 index 0000000..91eaa2d --- /dev/null +++ b/Python/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Python/.idea/modules.xml b/Python/.idea/modules.xml new file mode 100644 index 0000000..3097039 --- /dev/null +++ b/Python/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Python/.idea/vcs.xml b/Python/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Python/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Python/.idea/workspace.xml b/Python/.idea/workspace.xml new file mode 100644 index 0000000..2e2bb13 --- /dev/null +++ b/Python/.idea/workspace.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1602946208978 + + + + \ No newline at end of file diff --git a/Python/captcha.py b/Python/captcha.py new file mode 100644 index 0000000..7b9ec84 --- /dev/null +++ b/Python/captcha.py @@ -0,0 +1,27 @@ +import random +from tkinter import * +from tkinter import messagebox + +text = 'abcdefghijklmnopqrstuvwxyz0123456789' +window = Tk() +window.title("Captcha App") +window.geometry("300x100") #You can set the window according to your use +captcha = StringVar() +user_input = StringVar() + +def set_captcha(): + s = random.choices(text, k = 6) #value of k decides the length of captcha + captcha.set(''.join(s)) + +def check(): + if captcha.get() == user_input.get(): + messagebox.showinfo("Success", "Correct") + else: + messagebox.showinfo("Error", "Incorrect") + set_captcha() + +Label(window, textvariable = captcha, font = "Arial 16 bold").pack() +Entry(window, textvariable = user_input, font = "Arial 16 bold").pack(ipady = 5) +Button(window, command = check, text = 'Check', font = "Arial 10").pack() #you can change the font of title, captcha given and user input +set_captcha() +window.mainloop() \ No newline at end of file