For Loop - Hindi
- subtitles off
- captions off
- English
- Hindi
- Questions posted on Forums
- Java Tutorials - Hindi
-
Assignment program
I am not able to make a program that can show all the Armstrong number between 100 to 1000.This is where I got so far;public class ForLoop { public static void main(String[] args) { int i; int j; int a=1; int b=1; int c=1; int r; r = a*100+b*10+c; c= c*c*c; a= a*a*a; b= b*b*b; j=a+b+c; for (i=100;i<1000;i=i+1) { if ((i==j)&(i==r)){ System.out.println(i+"is a Armstrong number"); } } }} above code give the answer but need to put every digit myself to do that.
05-06M 20-30S Naveen_158
Answer last updated on: Dec. 6, 2021, 9:13 p.m.
-
1Getting started java Installation
-
2First Java Program
-
3Installing Eclipse
-
4Getting started Eclipse
-
5Hello World Program in Eclipse
-
6Errors and Debugging in Eclipse
-
7Programming features Eclipse
-
8Numerical Datatypes
-
9Arithmetic Operations
-
10Strings
-
11Primitive type conversions
-
12Relational Operations
-
13Logical Operations
-
14if else
-
15Nested if
-
16Switch Case
-
17while loop
-
For Loop
-
19do while
-
20Introduction to Array
-
21Array Operations
-
22Creating class
-
23Creating object
-
24Instance fields
-
25Methods
-
26Default constructor
-
27Parameterized constructors
-
28Using this keyword
-
29Non static block
-
30Constructor overloading
-
31Method overloading
-
32User Input
-
33Subclassing and Method Overriding
-
34Calling methods of the superclass
-
35Using final keyword
-
36Polymorphism
-
37Abstract Classes
-
38Java Interfaces
-
39Static Variables
-
40Static Methods
-
41Static Blocks
-
42Exception Handling
-
43Custom Exceptions
Questions posted on ST Forums:
2655 visits
Outline:
ट्यूटोरियल - for loop - For loop का परिचय। - for loop का सिंटैक्स। - लूप वेरिएबल। - लूप कॉन्डिशन। - लूप वेरिएबल में वृद्धि या ह्रास। - लूप ब्लॉक। - लूप का फ्लो। - लूप उपयोग करने के लाभ।
Width: | 800 | Height: | 608 |
---|---|---|---|
Duration: | 00:06:37 | Size: | 3.8 MB |
Show video info