0% found this document useful (0 votes)
34 views8 pages

Java Output Final

Project java

Uploaded by

devilq176
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
34 views8 pages

Java Output Final

Project java

Uploaded by

devilq176
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
Javaprogran: [Link]. Scanner; class Javaprogram ( Lic stati nain(string{] args) Scanner ob Scannex (System. 19); System. [Link]("entex the value int a = [Link](); System. [Link]("enter the value of b") int b = [Link](); Javaprogran [Link]. Scanne: i Javaprogram { main(string(] args) ( Scanner ob - new Scanner([Link]); System. out. printIn(“th L = [Link](); lue of length of side of squ: Yea = LL; System. [Link]("the area of the square is:'+3#6a) ry ee ee ie Se eee package javaprogram; =| inport [Link] Scanner Javaprogran J public static void main(stringt] args) ( 1 Scanner ob ~ new Scanner([Link]); [Link](“enter length “a x int a = [Link](): [Link]( t 1 b = [Link](): vy int 8a = atb; 1B [Link]("area of rectangl [sy ors eC ae ae tracy See! je javaprogram; [Link]: ass Javaprogran ( 4 main|string(] args) ( Scanner ob = new Scannex(System. in) System. [Link]("the length 9 int L = [Link](); 1 u int area = L‘L; 2 nt perimeter = 4°. 3 4 System. [Link]("s f thes 15 System. [Link]( 2 er ees Cyrus ae SC en eed is." +a8ea); is:"4area); uare is: "+perineter) ; 1 zt 2 Javaprogran 30 [Link]. scanner: 4 Javaprogram { 5 main(string{] args) ( 6 7 8 9 Scanner ob = new Scanner(System. in); System. [Link]("enter value of A:"): A = [Link](); 10 System. out. printIn("ente: of Bi"); u 8 = [Link]() 2 system. [Link]("enter value of c:") 3 C= [Link]() 14 5 pt BVg = (AeB+C)/: 16 System. [Link]("The average of A,B and C is:"+8¥g); eee ee Sten aera Sees Cave nae 7 ; ; =e : 2 © javaprogran: ag [Link] .Scanner; 4 Javaprogram ( 5 main(string(] args) { 6 7 Scanner ob ~ new Scannex (System. in); 8 Systen. [Link]( “enter value of A:") 9 A = ob-nextInt(); 10 Systen. [Link]( “enter value of 8:") n B = [Link]() 2 3 (8) 4 System. [Link]("s is ) 16 [Link]("8 is larger or equal to A"); package javapregran: 2 inport [Link] Scanner; Javaprogran { atic void main(Stzingt] args) ( Scannex ob = nen Scanner(systen. in); 3 systes. [Link]("enter value i: ° Ant a = ob-nextEnta: 10 systex. cur. printn( "enter f bs") u int b= ob-nextint(): 14 a-b: bec systen Vt printin( ee nates eee? p je Javaprogran ] import [Link]. Scannes Javaprogram ( public static void main(Stringl} args) ( Scanner ob = new Scat system, [Link](“enter value of F int F = [Link](); Float € - (F-32)*5/9, Systen, [Link]("Tenp in celsius is:"+c+" “+ Ee ce etree eee » Geos tias en Javaprogram: java util. Scanner ic Class Javaprogram { t nain(String(] args) ( Scanner ob ~ new Scanner(System. in); [Link]{"enter value of Ni") 9 N= [Link]() 10 u Fea; 2 G-1;ie-W;i++) 2B 4 System. [Link]{"Factorial of N is:"4F); cece eg cess 7 g javaprogram; 2 Javaprogran ( 40 main(string{] args) ( 5 sun - 0 6 7 (dot count =1:count<6count++) 8 sum=sum+count: 9 10 [Link]("sun is:"=8um); u ) 2 BY 4 package javaprogram: public class Javaprogram { public st yoid main(String[] args) ( int sum r(int 4-1;<101;h++) 10 system. [Link]("sum is:"+sun); nl } 2 Bo} “4 ite javaprogramjaveprogram > @ main > f Cre eet es = 7 2 package javaprogran 3 Gl inport [Link]. scanner; 4 public class Javaprogram ( 5 public static void maimStringt] args) { 6 Scanner ob = new Scanner( System. in); i System, ou’.printIn(“entex e 8 int n= [Link](); 9 int Sum = 0 10 u +4) 2 a System, [Link] atur ‘ shang" caries: 15am: “ ) 18 1%} 7 CS Crematories ee ecm em Te eease ae javaprogran; EB inport [Link]. Scanner; lublic class Javaprogran’( public static vold maimstringt] axgs) ¢ Scanner ob = new Scanner(Systen. System. [Link]( [Link](); nt sum = 2: for(int det;Been;de+y system, out. printInt sc ocanes cade esum: ee iit etica Ey ackeoe Javaprogram: | inport [Link]. Scanner public Class Javaprogram < c} public static void main(String{] args) ( Scanner ob Scannex([Link]); System. [Link]( d: int n= [Link](); int prod = for(int is prod-prod*: system, [Link]( so tans! "e"is"sprod): aac Gab eu aes ee eas ae package Javaprogram; public class Javaprogram + [| public static void ma{n(String{} args) ¢ int Slim = 0. int count while(count<=99) (Sum = sum+count; count ~ count+2; x ys Ut Li PLS ENS InmeSs =o

You might also like