For Loop - Telugu
- subtitles off
- captions off
- English
- Telugu
- Questions posted on Forums
- Java Tutorials - Telugu
-
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.
-
1Installing Eclipse
-
2Getting started Eclipse
-
3Hello World Program in Eclipse
-
4Errors and Debugging in Eclipse
-
5Programming features Eclipse
-
6Numerical Datatypes
-
7Arithmetic Operations
-
8Strings
-
9Primitive type conversions
-
10Relational Operations
-
11Logical Operations
-
12if else
-
13Switch Case
-
14while loop
-
For Loop
-
16do while
-
17Introduction to Array
Questions posted on ST Forums:
663 visits
Outline:
ఫర్ లూప్ ఫర్ లూప్ తో పరిచయం ఫర్ లూప్ సింటాక్స్ లూప్ వేరియబుల్ లూప్ కండీషన్ లూప్ వేరియబుల్ ను తగ్గించడం లేదా పెంచడం లూప్ బ్లాక్ లూప్ యొక్క ప్రవాహం(ఫ్లో) లూప్ ని ఉపయోగించడం యొక్క ప్రయోజనం
Width: | 800 | Height: | 608 |
---|---|---|---|
Duration: | 00:06:33 | Size: | 3.4 MB |
Show video info