FizzBizz:
if the number is divisible by 3,5 called as FizzBizz
Fizz:
If the number is divisible by 3 called as Fizz
Bizz:
If the number is divisible by 5 called as Bizz
Write a program for FizzBizz
INTERVIEW QUESTION FOR JAVA
Java program for EMPLOYEE DETAILS
Java program for MULTIPLE THREADS ACCESSING ONE METHOD
Java program for SINGLE THREADS ACCESSING ONE METHOD
Java program for Strin Reverse
java Program for Twin Prime numbers
JAVA PROGRAM FOR EQUILATERAL TRIANGLE
JAVA PROGRAM FOR RIGHT ANGLE TRIANGLE
JAVA PROGRAM FOR SORTING OF ARRAY MINIMUM TO MAXIMUM WITHOUT USING SORTING METHOD
Java Program for Sorting Of Array Maximum to Minimum WITHOUT USING SORTING METHOD
JAVA PROGRAM FOR TO PRINT PRIME NUMBERS
JAVA PROGRAM FOR FIZZBIZZ , FIZZ BIZZ TEST
JAVA PROGRAM FOR MIRROR IMAGE OF RIGHT ANGLETRIANGLE
if the number is divisible by 3,5 called as FizzBizz
Fizz:
If the number is divisible by 3 called as Fizz
Bizz:
If the number is divisible by 5 called as Bizz
Write a program for FizzBizz
package mobbiinfo.FizzBizz;
import java.util.Scanner;
public class FizzBizz {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter first number");
int num1=Integer.parseInt(sc.next());
System.out.println("Enter Second number");
int num2=Integer.parseInt(sc.next());
boolean fizzbizz=true;
if(num1%3==0 && num2%5==0){
System.out.println("FizzBizz");
}
if(num1%3!=0 && num2%5!=0){
System.out.println(" given numbers are not FizzBizz");
}
if(num1%3==0 && num2%5!=0){
System.out.println("Fizz");
}
if(num1%3!=0 && num2%5==0){
System.out.println("Bizz");
}
}
}
OUT PUT:
INTERVIEW QUESTION FOR JAVA
Java program for EMPLOYEE DETAILS
Java program for MULTIPLE THREADS ACCESSING ONE METHOD
Java program for SINGLE THREADS ACCESSING ONE METHOD
Java program for Strin Reverse
java Program for Twin Prime numbers
JAVA PROGRAM FOR EQUILATERAL TRIANGLE
JAVA PROGRAM FOR RIGHT ANGLE TRIANGLE
JAVA PROGRAM FOR SORTING OF ARRAY MINIMUM TO MAXIMUM WITHOUT USING SORTING METHOD
Java Program for Sorting Of Array Maximum to Minimum WITHOUT USING SORTING METHOD
JAVA PROGRAM FOR TO PRINT PRIME NUMBERS
JAVA PROGRAM FOR FIZZBIZZ , FIZZ BIZZ TEST
JAVA PROGRAM FOR MIRROR IMAGE OF RIGHT ANGLETRIANGLE
Comments
Post a Comment