Тёмный

Java Program #34 - Make a Simple Calculator Using Switch Case in Java 

Programming For Beginners
Подписаться 13 тыс.
Просмотров 74 тыс.
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@programmingforbeginners7392
Watch more such videos in below playlist: Java Tutorial: ru-vid.com/group/PLhyraTKIsw5_WemVMvshNm-0aC7zfISCO Java Programs: ru-vid.com/group/PLhyraTKIsw59nQJKvZTKmNK2aMxHwvLOa
@nikhee8
@nikhee8 9 месяцев назад
Wahh.... Brilliant job... Nice explanation.. Keep it up 💯👏
@programmingforbeginners7392
@programmingforbeginners7392 9 месяцев назад
Thanks a lot 😊
@Hinoligy
@Hinoligy Год назад
This helped me understand switches more thx bro
@programmingforbeginners7392
welcome. share with your friends!
@me_master_meme
@me_master_meme Год назад
Your explanation is very good keep going : )
@programmingforbeginners7392
Thank you, I will
@SHIVAMKUMARSHARMA-ps3gl
@SHIVAMKUMARSHARMA-ps3gl Год назад
Write a program for calculators in java which performs addition, subtraction, multiplication and division of any two numbers. Take user input using Scanner class and print the results of every calculation. do it
@khushisingh4584
@khushisingh4584 Год назад
Thanks for the video it helped me a lot ❤️
@programmingforbeginners7392
Glad it helped!
@SuperWaqas007
@SuperWaqas007 2 месяца назад
so much thank full to you sir...
@programmingforbeginners7392
@programmingforbeginners7392 2 месяца назад
Most welcome
@meriemmansouri3441
@meriemmansouri3441 10 месяцев назад
Thank you so much 🙏
@programmingforbeginners7392
@programmingforbeginners7392 10 месяцев назад
You're welcome 😊
@roll20nilaydasgupta41
@roll20nilaydasgupta41 Месяц назад
How we can do the arithmetic operation??? Eg - 1+2-5(3*4)
@showme13100
@showme13100 Год назад
Dont we need to return the value of result or is it restricted in switch statement?
@programmingforbeginners7392
We can return the value of result since it is declared under main function.. we just needed to print result so it was printed within main, but you can return it as well if using another function for switch case
@showme13100
@showme13100 Год назад
@@programmingforbeginners7392 thank you
@Got_viral
@Got_viral Год назад
Thanks bro
@programmingforbeginners7392
Welcome
@furkan809
@furkan809 11 месяцев назад
thank you
@programmingforbeginners7392
@programmingforbeginners7392 11 месяцев назад
You're welcome
@RashmiRashmi-rw4ek
@RashmiRashmi-rw4ek 2 месяца назад
the code is showing that the operator is defined first and then again why the declaration is again required
@ilyosshoniyozov6012
@ilyosshoniyozov6012 Год назад
Bro you made a mistake which was in 4th operator. You have to put n2=0 System.out.println ("invalid"); Or other things words like that
@RashmiRashmi-rw4ek
@RashmiRashmi-rw4ek 2 месяца назад
where is the modulus operator??
@Idealbruda
@Idealbruda 3 месяца назад
Is it necessary to write result =0 , can't we just start from switch
@RashmiRashmi-rw4ek
@RashmiRashmi-rw4ek 2 месяца назад
no
@hrushikeswarareddy251
@hrushikeswarareddy251 10 месяцев назад
how can the program should keep on executing automatically after onetime completion plz let me know
@programmingforbeginners7392
@programmingforbeginners7392 10 месяцев назад
Put it in while(true) loop to run continuously
@Jeremy-m8r
@Jeremy-m8r 10 месяцев назад
Can you tell me how to use multiple operators
@prachitawde6948
@prachitawde6948 3 месяца назад
😅
@huyle5011
@huyle5011 11 месяцев назад
How to make operator as + - × /
@programmingforbeginners7392
@programmingforbeginners7392 11 месяцев назад
you can ask the user to provide input as one of these 4 operators as a string, and based on the operator and other 2 numbers, the calculations can be done
@hasthapurammonuninni9591
@hasthapurammonuninni9591 Год назад
bro how to give continuous input without running programe again and again
@programmingforbeginners7392
Put the code inside loop to continuously use the calculator
@tamilathalainimirtamila9120
@tamilathalainimirtamila9120 9 месяцев назад
​@@programmingforbeginners7392 Bro when I given exit option on the time wise program was get exit other wise prog still running wht a loop i use
@selfsufficient1987
@selfsufficient1987 Год назад
If I choose division and entered two nos as 35 and 45 then it gives me result as 0 Please explain
@programmingforbeginners7392
35/45 gives us result as 0.77 usually but in the Java code we are taking both these numbers as integers and that's why the result of division operation is also integer in this case - 0.77 is taken as 0 in the result.. Change the data type to double for both the inputs taken and you'll get the result as 0.77 Hope this helps 👍
@mann_mann
@mann_mann Год назад
@@programmingforbeginners7392 i have tried but still it is not working properly and it did not print the correct value.
@programmingforbeginners7392
can you please provide your code?
@shuraimzaid6726
@shuraimzaid6726 Год назад
Double and float data types can be used in switch statements
@shuraimzaid6726
@shuraimzaid6726 Год назад
​@@programmingforbeginners7392not working
@SladeBuffet
@SladeBuffet Год назад
you should consider that you cannot divide by 0
@weewee3138
@weewee3138 11 месяцев назад
It’ll give a logical error
@azharalibalouch3766
@azharalibalouch3766 11 месяцев назад
wow
@programmingforbeginners7392
@programmingforbeginners7392 11 месяцев назад
Thanks 👍
@kaiumalrafi1369
@kaiumalrafi1369 Год назад
thank you so much. it helps me a lot..
@programmingforbeginners7392
Welcome. Subscribe and share with your friends 😀
Далее
How to make a Simple Calculator using AWT in Java
24:42
Wait for it 😂
00:19
Просмотров 3,4 млн
МЭЙБИ БЭЙБИ - Hit Em Up (DISS)
02:48
Просмотров 397 тыс.
Java calculator app 🖩
34:36
Просмотров 441 тыс.
Build this JS calculator in 15 minutes! 🖩
15:20
Просмотров 624 тыс.
Coding Was Hard Until I Learned THESE 5 Things!
7:40
Switch Case in Java #35
9:30
Просмотров 205 тыс.
Learn Java in 15 Minutes (seriously)
19:50
Просмотров 96 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
Learn Java in 14 Minutes (seriously)
14:00
Просмотров 4,8 млн
How To Make A Calculator Using HTML CSS And JavaScript
19:01