For Loop - Gujarati
- subtitles off
- captions off
- English
- Gujarati
- Questions posted on Forums
- Java Tutorials - Gujarati
-
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:
918 visits
Outline:
ટ્યુટોરીયલ- ફોર લૂપ - ફોર લૂપ નો પરિચય - ફોર લૂપ નું સિન્ટેક્સ - લૂપ વેરીએબલ - લૂપ કન્ડીશન - લૂપ વેરીએબલ ઇન્ક્રીમેન્ટ અથવા ડીક્રીમેન્ટ - લૂપ બ્લોક - લૂપનો ફ્લો - લૂપ ને વાપરવાના ફાયદાઓ
Width: | 800 | Height: | 608 |
---|---|---|---|
Duration: | 00:06:36 | Size: | 3.7 MB |
Show video info