Basic Java Calculator using Switch Case Statement
Popular Posts
-
This is a Basic Java Calculator using If..ElseIf..Else Statement.
-
import java.util.Scanner; class completename{ public static void main(String args[]){ Scanner user_input = new Scanner(System.in); ...
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyDeleteangularjs Training in bangalore
angularjs Training in btm
angularjs Training in electronic-city
angularjs Training in online
angularjs Training in marathahalli
Wonderful article, very useful and well explanation. Your post is extremely incredible. I will refer this to my candidates...
ReplyDeleteJava training in Rajaji nagar | Java training in Kalyan nagar
Java training in Kalyan nagar | Java training in Jaya nagar
Have you been thinking about the power sources and the tiles whom use blocks I wanted to thank you for this great read!! I definitely enjoyed every little bit of it and I have you bookmarked to check out the new stuff you post
ReplyDeleteData Science Training in Indira nagar | Data Science Training in btmlayout
Python Training in Kalyan nagar | Data Science training in Indira nagar
Data Science Training in Marathahalli | Data Science Training in BTM Layout
Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
ReplyDeleteIf you are looking for any python Related information please visit our website Python Training In Pune page!
Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
ReplyDeleteJava training in Chennai
Java Online training in Chennai
Java Course in Chennai
Best JAVA Training Institutes in Chennai
Java training in Bangalore
Java training in Hyderabad
Java Training in Coimbatore
Java Training
Java Online Training
Irrespective of rankings, this will help in huge traffic generation, on your website, over time and, in turn,will steadily increase the number of potential customers for your products and services.
ReplyDeletejava training in chennai
java training in velachery
aws training in chennai
aws training in velachery
python training in chennai
python training in velachery
selenium training in chennai
selenium training in velachery
"nice work keep it up thanks for sharing the knowledge.Thanks for sharing this type of information, it is so useful.
ReplyDeleteoracle training in chennai
oracle training in annanagar
oracle dba training in chennai
oracle dba training in annanagar
ccna training in chennai
ccna training in annanagar
seo training in chennai
seo training in annanagar
It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me.
ReplyDeletehadoop training in chennai
hadoop training in tambaram
salesforce training in chennai
salesforce training in tambaram
c and c plus plus course in chennai
c and c plus plus course in tambaram
machine learning training in chennai
machine learning training in tambaram
import java.util.Scanner;
ReplyDeleteclass basicalc{
public static void public static void main (String[] args)
{
Scanner user_input = Scanner(System.in);
double fnum,snum,ans;
int ch;
System.out.println("1. Addition");
System.out.println("2. Substraction");
System.out.println("3. Multiplication");
System.out.println("4. Division");
System.out.println("5. Choose you operator: ");
ch = user_input.nextInt();
System.out.println(" ");
switch (ch){
case 1:
System.out.println("You choose Addition");
System.out.print("Enter first num : ");
fnum = user_input.nextDouble();
System.out.print("Enter second num : ");
snum = user_input.nextDouble();
ans = fnum+snum;
System.out.println("Enswer is : " + ans);
break;
case 2:
System.out.println("You choose Substraction");
System.out.print("Enter first num : ");
fnum = user_input.nextDouble();
System.out.print("Enter second num : ");
snum = user_input.nextDouble();
ans = fnum-snum;
System.out.println("Enswer is : " + ans);
break;
case 3:
System.out.println("You choose Multiplication");
System.out.print("Enter first num : ");
fnum = user_input.nextDouble();
System.out.print("Enter second num : ");
snum = user_input.nextDouble();
ans = fnum*snum;
System.out.println("Enswer is : " + ans);
break;
case 4:
System.out.println("You choose Division");
System.out.print("Enter first num : ");
fnum = user_input.nextDouble();
System.out.print("Enter second num : ");
snum = user_input.nextDouble();
ans = fnum/snum;
System.out.println("Enswer is : " + ans);
break;
default:
System.out.println("You can choose from number 1 to 4 only");
}
}
}
public static void public static void main (String[] args)-------this is wrong.
Deletepublic static void maim (String[] args)
break;--------- in end.
ReplyDeleteEn Son Çıkan Perde Modelleri
ReplyDeleteSMS ONAY
Mobil Odeme Bozdurma
nft nasıl alınır
ankara evden eve nakliyat
trafik sigortası
dedektor
web sitesi kurma
aşk kitapları
SMM PANEL
ReplyDeleteSmm Panel
iş ilanları
İNSTAGRAM TAKİPÇİ SATIN AL
Hirdavatci
beyazesyateknikservisi.com.tr
Servis
tiktok jeton hilesi
kartal bosch klima servisi
ReplyDeleteümraniye bosch klima servisi
tuzla samsung klima servisi
tuzla mitsubishi klima servisi
çekmeköy bosch klima servisi
çekmeköy arçelik klima servisi
ataşehir arçelik klima servisi
maltepe samsung klima servisi
maltepe mitsubishi klima servisi
en son çıkan perde modelleri
ReplyDeleteyurtdışı kargo
nft nasıl alınır
özel ambulans
lisans satın al
en son çıkan perde modelleri
minecraft premium
uc satın al