Sample Calculator! :)
Aafthab Ali Shaik

Aafthab Ali Shaik @aafthab_ali

About: Building!

Joined:
Mar 7, 2025

Sample Calculator! :)

Publish Date: Mar 11
1 1

Image description

import java.util.Scanner;
public class Main
{
public static int sum(int num1,int num2){
   return num1+num2;
}
public static int sub(int num1,int num2){
   return num1-num2;
}
public static int mul(int num1,int num2){
   return num1*num2;
}
public static double divi(int num1,int num2){
   return num1/num2;
}
public static double per(int num1,int num2){
   return num1%num2;
}

public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   System.out.println("Enter number:");
   int num1= sc.nextInt();
   System.out.println("Enter the second number:");
   int num2= sc.nextInt();
   System.out.println("\n1.Addition\n2.Subtraction\n3.Multiplication\n4.Divison:");
   int n = sc.nextInt();
   int sum1=sum(num1,num2);
   int sub1=sub(num1,num2);
   int mul1=mul(num1,num2);
   double divi1=divi(num1,num2);
   double per1=per(num1,num2);
   if(n==1){
       System.out.println(" \nAddition of "+num1+" and "+num2+" is "+sum1);
   }
   else if(n==2){
       System.out.println(" \nSubtraction of "+num1+" and "+num2+" is "+sub1);
   }
   else if(n==3){
       System.out.println(" \nMuliplication of "+num1+" and "+num2+" is "+mul1);
   }
   else if(n==4){
       System.out.println("\nDivison of "+num1+" and "+num2+" is  "+divi1);
   }else if(n==5){
       System.out.println("\nto find remainder of "+num1+" and "+num2+" is "+per1);
   }else{
       System.out.println("\n1 Please Enter a valid number between from 1 to 5!");
   }
}

}
Enter fullscreen mode Exit fullscreen mode

Check this out!!

Comments 1 total

  • Johnson Rosemary
    Johnson RosemaryMar 12, 2025

    CAN I RECOVERY MONERY FROM SCAMMER? YES

    How I recouped stolen crypto currency coins and tokens from scam hackers on telegram. People all over the world are hearing about the fast profits early investors are making on Bitcoin and other coins and want to join the party and make a fast profit. But be sure, where big money is, there are also companies that are abusing and taking advantage of this situation. Such was my situation, I had a fake telegram group admin contact me and gave me a phishing link in which my 12 recovery phrase was compromised. These evil persons gained access to my cryptowallet and stole all my coins and tokens worth over $ 640,000. I was in great despair due to this situation, I was confused till a group member on the telegram referred me to Cyberspacehackpro(@)rescueteam com This recovery agent is really God sent. After relating all of my predicaments, details of incidence and necessary requirements for my recovery program, it took them less than a week to track and recover all of my tokens and coins back, they helped me hack the perpetrators wallet and all of my coins were returned to me. I am so amazed, joyous and appreciative. I don't know what I would do without this specialist. They specialize in chargeback disputes and their team knows how to identify these types of scams. If you invested in Crypto and believe you have been scammed contact their experts today and they will help you recover your losses.

    Contact info
    WhatsApp: +1 (659) 217 9239
    Email: Cyberspacehackpro (@) rescueteam . com
    cyberspacehackpro0.wixsite.com/cyb...

Add comment