Please Login To Continue

Program to check if a number is Prime or not.

Lesson 30 of 32 • 0 upvotes • 9:52mins

Avatar

Anjali Luthra

This lesson is to explain how to use break statement in programs. The program solved is to input a number and check if it is a prime number or not.

Continue on app
1

Features of Java Core

10:37mins

2

Object Oriented Features of Java

13:05mins

3

Software required to code in Java

7:08mins

4

First Program in Java

11:27mins

5

How to execute a Java Program

8:35mins

6

Output statements in java using System.out

9:15mins

7

Data types in JAVA

12:22mins

8

Unary Operators in Java, Increment and Decrement operators

11:55mins

9

Binary operators in java

10:57mins

10

Ternary (Conditional) Operator in Java

7:54mins

11

Taking User Input in Java

8:47mins

12

Checking conditions using if statement

10:27mins

13

Using else if ladder in Java

11:15mins

14

Using Nested if else in Java

9:10mins

15

Switch statement in Java, Menu Driven Programs

11:26mins

16

Fall through in Switch and Arithmetic Calculator

10:11mins

17

Few more example of Switch Statement

8:30mins

18

Iteration or Repetition in Java

9:28mins

19

Using for loop : syntax and its application

13:07mins

20

Program examples using for loop

10:16mins

21

Program to Calculate Factorial of a number

9:28mins

22

Programs to find sum of series

9:37mins

23

Working of while loop in Java

10:50mins

24

Syntax and working of do while loop

9:37mins

25

Program to calculate HCF of two numbers

10:17mins

26

Program to check if a number is Armstrong number or not

9:39mins

27

Program to find reverse of a number and check for Palindrome

9:24mins

28

Program to find LCM of two numbers

10:24mins

29

Using break and continue statement in Java

8:27mins

30

Program to check if a number is Prime or not.

9:52mins

31

Program to check password validation in three attempts maximum

8:45mins

32

Nesting of loops

9:41mins

Crack Programming with Unacademy

Get subscription and access unlimited live and recorded courses from India's best educators
Structured syllabus
Structured syllabus
Daily live classes
Daily live classes
Ask doubts
Ask doubts
Tests & practice
Tests & practice

More from Anjali Luthra

thumbnail
HindiInformatics Practices

Master Database and SQL Concepts - Day 4 of 7

Anjali Luthra

Similar Plus Courses

Unacademy is India’s largest online learning platform. Download our apps to start learning


Starting your preparation?

Call us and we will answer all your questions about learning on Unacademy

Call +91 8585858585
Company
About usShikshodayaCareersBlogsPrivacy PolicyTerms and Conditions
Products
Learner appLearner appEducator appEducator appParent appParent app