40% DISCOUNT LIMITED SEATS
Java Full Stack + AI Industrial Training 2026
Expert MNC Mentors • Industrial Roadmap • 10 Seats Left
GitHub
Month 01: Lab Setup

Java & GitHub

  • Java 21 & IntelliJ AI Mastery
  • GitHub Team Industrial Flow
  • MNC Standard VS Code Setup
Logic
Month 02: Logic Lab

Logic Mastery

  • Complex DSA with MNC Experts
  • Telugu & English Logic Bridge
  • Daily Problem Solving Drills
Backend
Month 03: API Hub

Spring & SQL

  • Spring Boot 3 Microservices
  • Postman API Automated Testing
  • PostgreSQL DB Architecture
Frontend
Month 04: UI Factory

React & Tailwind

  • React 18 & AI Component Dev
  • Industrial Tailwind UI Library
  • Redux State Management
Cloud
Month 05: Deploy

AWS & Jira Hub

  • Cloud Deploy on Real AWS
  • Agile Scrum with Jira Tools
  • Jenkins CI/CD Pipeline
Success
Month 06: Result

Job Offer Letter

  • Tier-1 MNC Direct Referrals
  • Salary Negotiation Strategy
  • High CTC Placement Pipeline

Write a Java program to find given number Armstrong number or Not? | StudyEcart E-Learning

Yogi Siddeswara 0
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package in.studyecart.basics;

//153  =1*1*1 + 5*5*5 +3*3*3=153
import java.util.Scanner;

public class ArmStrongNumber{

	public static void main(String[] args) {

		

		
		  Scanner sc=new Scanner(System.in);
		  System.out.println("Please enter Number :");
		  
		  int num =sc.nextInt(),actual_num=num;;
		  
		  int allSum=0;
			
			while(num!=0) {
		          int digit=num%10; 
			    
			     allSum=allSum+(digit*digit*digit);
			     
				 num=num/10; 
			}
			
			if(actual_num==allSum) {
				System.out.println("Given Number is ArmStrong :"+actual_num);
			}
			else {
				System.out.println("Given Number is NOT - ArmStrong :"+actual_num);
			}
			
			
		  
		  sc.close();
		 

		
	
	
	}
	
		
		

	}

Post a Comment

0 Comments