Hello Everyone, how y'all are fine. In this blog, we are gonna try to build program for Euclid's Division Lemma. It just a mathematical theorem that states that "Given positive integers a and b, there exist unique integers q and r such that a = bq +r, 0 < r < b". Here basically 'a' is dividend, 'b' is divisor, 'q' is quotient and 'r' is remainder. This is user to find the HCF(Highest Common Factor) of two numbers. We are going to build program to do exactly that. I am using C programming language, however this can be done using any programming language. So I created a new C program file using vim and I used the below code. ======= Code ======= #include <stdio.h> void main(){ int num1,num2,a,b,q,r; printf("Enter a number: "); scanf("%d",&num1); printf("Enter another number: "); scanf("%d",&num2); ...
Hello Guys, It's been a while since I have posted something, isn't it? So, what's up you ask? Well, it happened on Monday, 22nd February, 2021. I was just passing my time, watching a Youtube video on a virtual assistant project. The video was quite impressive to be honest. They even used some package to extract data from Wikipedia. After watching that video, I thought to myself, is there any such package for Narutopedia? Now those of you who know me personally, know how big of a Naruto and Boruto fan I am, so I started to check if I could find one, however, I couldn't find any. I am not saying that there is no Python package for Narutopedia, there could be one, it's just that I couldn't find any. So I thought, "Why not make a simple app that can extract data from Narutopedia for anything we search?". The only problem back then was that I had no idea how to do that. I then started to research and it took only a few minutes until I realized that there i...