Last semester, I made a program to convert from base 10 to base n, but I didn't know how to convert fractional numbers. I was inspired by your video title to create a program that can accept rational inputs like 32.47. I first sat down and figured out the algorithm to convert the given number's integer and fractional parts to binary on paper (using reminders and division for the integer part, and multiplication and subtraction for the fractional part). Then, I generalized it to base n and wrote the program in C.Since higher bases need more digits than 0-9, I used letters A-Z and a-z to represent higher bases. To handle negative values, the program will print "-" and then take the absolute value and proceed. Here is the program. Please feel free to read it and suggest improvements. I have tried to include extensive comments for the reader's convenience. #include #include char digit(int d1){//convert given number to it's corresponding digit if (d1 < 10) return(d1 + 48); //use digits [0 to 9] else if (d1
I am very beginner , everything I have leaned from u. I have written the java code for this question. package project1; import java.util.Scanner; public class DecToBin { public static void main(String[] args){
int[] arr = new int [10]; Scanner input = new Scanner(System.in); System.out.println("Enter your desire Number"); int n = input.nextInt(); int reminder; int i=0; while(n!=0){ reminder = n % 2; n = n/2; arr[i] = reminder; i++; } System.out.println("The Binary is"); for(int j=i-1;j>=0;j--) { System.out.print(arr[j]); } System.out.println(); } }
Please make a playlist on Java Because in my book java is there but I can't understand Please make a playlist on java Please make a playlist on java Thanking you you and your work
hello sir m pakistan se ho mene ap ki sab se pahely c++ wali video dekhi tu mujhe os video m bohat kuch sekhne ko mila ............. but i need u r help.............
Sir aapse jyada ummid thi es tarah ke program ke liye lekin aap sirf 10%hi samajh paaye ,,bahut jyada kathin bana diye h ,,plz aur esay method se samajhayiye
Thanks for these amazing videos... Can you please make videos covering other conversions and other questions which are common in online tests for internships and jobs!!????? Waiting!!!
Sir i have almost complited the web development playlist.... But i have basic knolwde of php so can you please make a video on how to use php as a backend..... I felt php is easy for a beginner rather than node js...... So sirplease make a video on " Using PHP In backend....
Sir jb mai aap ka c++, c ,ya java programming language dekhata hu to mere samjh me aata hai but pura nahi so aap daily ka 20 ya 40 minutes ka ek video uploaded kijiye
Sir Maine abhi 10th pass kiya hain aur me aage computers me currier Karna chata hu ?)To me software development karu ya soft engineering ya aur koi options hain ?)to main konsi site choose karu aur pcb karu ya pcm karu Please reply me sir U r my role moddel
Can you please do a live/recorded freelancer project for a software developer , like using python and django or according to the project requirements ?
@@raseshshetty2386 maybe.. i was curious as i saw few videos on solving live freelancer projects..I asked becoz his teaching style is unique and easy to understand. Still no worries if thats not possible.
plz make a video on which field(example: app development, web developer , data scientist) in software engg. to get high salary job also can a btech in ECE get this job by his skills.plz make a full detailes video.
Sir , Please make a video on 'How to be a data scientist in 2020' full guidelines.....I am waiting for your instruction on this topic Sir. I have seen other UA-camrs video but they are not clear enough. I am 100% sure that your guidelines will be completely useful as it has always been. Thank you Sir.
Last semester, I made a program to convert from base 10 to base n, but I didn't know how to convert fractional numbers. I was inspired by your video title to create a program that can accept rational inputs like 32.47. I first sat down and figured out the algorithm to convert the given number's integer and fractional parts to binary on paper (using reminders and division for the integer part, and multiplication and subtraction for the fractional part). Then, I generalized it to base n and wrote the program in C.Since higher bases need more digits than 0-9, I used letters A-Z and a-z to represent higher bases.
To handle negative values, the program will print "-" and then take the absolute value and proceed.
Here is the program. Please feel free to read it and suggest improvements. I have tried to include extensive comments for the reader's convenience.
#include
#include
char digit(int d1){//convert given number to it's corresponding digit
if (d1 < 10)
return(d1 + 48); //use digits [0 to 9]
else if (d1
Thank you bhaiyaajaan..... Aapke har eak videos Jo Maine dekhe hai, sabse kuch sikhaa huu, aur aage bhi sikungaa
9:43 1100 in binary sir you are the best if you see this comment please reply and heart
9:45 --> here ✓ is used for division.
2✓12 = 0, 2✓6 = 0, 2✓3 = 1, 2✓1 = 1
Finally 12 ----> 1100.
Mera bhi aarhahe
@@kunalkapse9307 बधाई हो 😂
You deserve millions subscribers.
You are my best and favourite teacher in the world
Thankyou sir you teaches very well..now no confusion about this programme 😊
Perfectly syncing with my syllabus
Great to hear!
I am bangladeshi.i think your youtube channel is the best for coding
Aaj hi ye digital electronics me pdhaya gya tha😂
Everytime u match 😁👍
Harry Bhai Please give me heart btw 9:31
12/2 = 6,0 [Quotient,Reminder]
6/2 = 3,0,
3/2 = 1,1
1/2 = 0,1
Taking all reminders 0011 Now reversing it 1100
Correct! Lots of love ❤✌
@@CodeWithHarry Thank you
500k ki advance me badai.harry sir... 1, 2 din me ho to ho jaynge pakka❤💥👏
I am very beginner , everything I have leaned from u. I have written the java code for this question.
package project1;
import java.util.Scanner;
public class DecToBin {
public static void main(String[] args){
int[] arr = new int [10];
Scanner input = new Scanner(System.in);
System.out.println("Enter your desire Number");
int n = input.nextInt();
int reminder;
int i=0;
while(n!=0){
reminder = n % 2;
n = n/2;
arr[i] = reminder;
i++;
}
System.out.println("The Binary is");
for(int j=i-1;j>=0;j--)
{
System.out.print(arr[j]);
}
System.out.println();
}
}
harry bhai thank you for this special trick.
mene 12 ka binary sy decimal ki h.
the answer is=(1100)
9:40 1100 thankyou bhai 😊support from rajasth
bohot sahi tarikese samjha ,thanks.
Thanks a lot Harry sir iss code ko samjhane ke liye..
Please make a playlist on Java
Because in my book java is there but I can't understand
Please make a playlist on java
Please make a playlist on java
Thanking you you and your work
confusion is clear now thanks harry
Our family is going to 5ook
Congratulations 👍👍
Thanks bhaiyaa. Mujhe is video ki bhot zarroorat thi
9.34
For decimal to binary
12 -> 1100
hello sir m pakistan se ho mene ap ki sab se
pahely c++ wali video dekhi tu
mujhe os video m bohat kuch sekhne ko mila
............. but i need u r help.............
Harry bhai content >= software engineer degree
(Harry bhai ka video apune ko real kame ka software engineer Bana dega)
The binary form of 12 will be 1100. Is it correct?
S
Yes it's i right
Yes
Ys bro
No 0100
9:40
12 in decimal =1100 in binary
9:40 1100 12number binary 😊
Thanks sir . And love from bangladesh
Sir aapse jyada ummid thi es tarah ke program ke liye lekin aap sirf 10%hi samajh paaye ,,bahut jyada kathin bana diye h ,,plz aur esay method se samajhayiye
Aap ka hi wait tha bhai pls java ka bhi bada one video banao pls🙏🙏
Thanks for these amazing videos... Can you please make videos covering other conversions and other questions which are common in online tests for internships and jobs!!?????
Waiting!!!
We can use in question a[9-i]=rem instead of a[I] and print the normal array 😁
Sir i have almost complited the web development playlist.... But i have basic knolwde of php so can you please make a video on how to use php as a backend..... I felt php is easy for a beginner rather than node js...... So sirplease make a video on " Using PHP In backend....
thanks harry bhai i had been searching this kind of question for long time
Bhaiya you are great and you upload informative videos...
16:45
int i=4;
while(n) {
rem = n%2;
n=n/2
a[i]= rem
i - - ;
}
Can we use this instead?
Reply if u read this comment.
Harry bhy Zindabad 🙏
for case of 0 , we can just simply initialize the array to {0}
Hell yeahhh 🤩
Long asked question answered 😝
9:35 Ans. is 1100
Sir jb mai aap ka c++, c ,ya java programming language dekhata hu to mere samjh me aata hai but pura nahi so aap daily ka 20 ya 40 minutes ka ek video uploaded kijiye
Kya baat hai haris bhai❤️
Sir Maine abhi 10th pass kiya hain aur me aage computers me currier Karna chata hu
?)To me software development karu ya soft engineering ya aur koi options hain
?)to main konsi site choose karu aur pcb karu ya pcm karu
Please reply me sir U r my role moddel
9:33:-
12 ki binary value 1100 होती है।
harry bhai ap best ho yaar💥👏
First comment
Bhai react ke series b bnao please
9:44 Binary of 12 is 1100
9:45 - 1100 DONE IN MIND
Thank you lot of 😀❤️
9:39 12 in binary = 1100
Bhai, SQL pe bhi bana do kuchh.. UA-cam pe bas basics hi hain.. aap python playlist jaise kuchh SQL me bhi bana do..
Thank you sir ......
(My great sir .......) 😍😍❤️❤️❤️❤️❤️❤️❤️❤️
Heart dedo Harry bhai coder from Hogwarts vidhyalay Delhi
Harry Sir Request !
Please Make Advance Tkinter Course ......
hii Harry, please make a video on number system including hexadecimal, octal number system. As soon as possible .
Awesome bhai♥️
9:38
(12) :- 1100
Nice video...sir....make many series on this type of DSA sub. Vid. and hard prob. vids.👍🏻
*HW* 9:43 -----> 1100
time: 9:47 Answer: 1100
Maza a gaya harry bhai❤
really great sir thank you so much.........
9:45 12 = 1100
Correct the binary of 12 is 1100! Lots of love ❤✌
Thank u
Thank you sir ❤❤❤
Thank You for Video!
2 comment sir aap suru se coading sikhaye na PLZZ sir mai siwan se hu PLZZ sir
Thnxx for this vdo😊😊
9:44- 12 == 1100 in binary
9:32
12-(1100)
Correct the binary of 12 is 1100! Lots of love ❤✌
9:40 1100 binary number of 12.
Pleased harry bhai make this program in Python also....
Love you...
[09:49] answer: 1100
9:45 Binary of 12is 1100
9:45
Binary of 12 is ---->1100
Correct! Lots of love ❤✌
@@CodeWithHarry Thanks bro
Aap se hi toh sikha hai 😉
plz make this video in hindi also. I am learining c language fromyour recent video on C.
Very nice sir
Mahipal kumar
You are great sir.
Thanks Harry Bhai
thank you. very well explained.
Can you please do a live/recorded freelancer project for a software developer , like using python and django or according to the project requirements ?
python enthusiast but I don’t think anyone would get allowed by the project provider to do so...
@@raseshshetty2386 maybe.. i was curious as i saw few videos on solving live freelancer projects..I asked becoz his teaching style is unique and easy to understand. Still no worries if thats not possible.
Bhai is type ke conversion ke aur video banao
Hamare concept bhi clear honge.
Great video
Bhai is list ko competitive tak leke jaoge?
Dude, ye series placements k liye helpful rahegi kya?
Yes bro! Such type of questions are very frequently asked in the placements!
Bhai which headphones do you use.?
Please reply.....
Bro please make your data structures and algorithms series in python too.please please 🙏🙏🙏🙏🙏🙏🙏🙏
You are great bro .
plz make a video on which field(example: app development, web developer , data scientist) in software engg. to get high salary job also can a btech in ECE get this job by his skills.plz make a full detailes video.
10.07 binary conversion of 12 is 110.
9:30 binary form of 12 is 1100
12 in Binary (9:35) = 1100
Awesome work sir
Plz make video on dbms 🅾️
sir please make vedio on complete dsa.
Thank you harry bhai
plz make ds and algo series for absolute beginners.
9:46 12-> binary=1100
Sir , Please make a video on 'How to be a data scientist in 2020' full guidelines.....I am waiting for your instruction on this topic Sir. I have seen other UA-camrs video but they are not clear enough. I am 100% sure that your guidelines will be completely useful as it has always been. Thank you Sir.
9:50 12-
1100
9:45
decimal number into binary
12 = 1100
Correct! Lots of love ❤✌
@@CodeWithHarry thanks dear ❤️