Java program to print all the prime numbers between 1 and 100

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024
  • View Notes Here - www.evernote.co...

ความคิดเห็น • 8

  • @punk199615
    @punk199615 ปีที่แล้ว +1

    I Love your channel and explanations. It's been helping me a lot. Thank you.

    • @QAFox
      @QAFox  ปีที่แล้ว

      Welcome :)

  • @chandankumarsingh4753
    @chandankumarsingh4753 11 หลายเดือนก่อน +1

    The number of lines in your program is to much due to which the program may become slow.
    import java.util.Scanner;
    public class EvenOdd2
    {
    public static void main(String[] args)
    {
    int num;
    System.out.println("Enter any number");
    Scanner sc=new Scanner(System.in);
    num=sc.nextInt();
    if(num%2==0)
    System.out.println("Even Number");
    else
    System.out.println("Number Odd" );
    }
    }

  • @worldsprime157
    @worldsprime157 3 ปีที่แล้ว +2

    Nice explanation 🙌

    • @QAFox
      @QAFox  3 ปีที่แล้ว +1

      Thank you :)

    • @worldsprime157
      @worldsprime157 3 ปีที่แล้ว

      @@QAFox mention not!

  • @ganeshdhakane27
    @ganeshdhakane27 ปีที่แล้ว +1

    Are bhai tune isprime = false
    If or else dono me lia hai tho else ka matlab kya hai bhai

  • @afk12217
    @afk12217 2 ปีที่แล้ว

    SIR YE BINA METHOD KE KARO...HAR JAGA METHOD NHI LAGA SAKTE