Upload
miqamk
View
215
Download
0
Embed Size (px)
Citation preview
7/25/2019 davaleba asd1. 2..txt
1/2
1.
package miqamiqa;
public class Dasawyisi {public static void main(String args[]){
System.out.println("??????????? ??????? ???????? ??????????? ????? ???????, ??????? ??????? ????????????? ????? ????????? ????????? ??????????? ?????????? ????????. ??? ?? ????????, ??????????? ????? ???????? ?? ???? ????? ???????????. ???????????? ????????? ???????????? ?? ?????????? ??????? ??????? ??????????????. ?????????????? ?????? ???????? ???????? ?? ???? ????? ????????? ?????????? 20 ?????? ?????");}}
//////////////////////
davaleba 2
1.
package miqamiqa;
public class Dasawyisi {public static void main(String[] args){
double a=2,b=3,c=4,P,k,S;if (a+b>c && a+c>b && b+c>a){P=(a+b+c)/2;System.out.println("perimetr naxevari aris " + P);S=Math.sqrt((P*(P-a)*(P-b)*(P-c)));
System.out.println("partobi aris " + S);}else System.out.println("ar aris samkutxedi");}}
///////////////////////
2.
package miqamiqa;
public class Dasawyisi {public static void main(String[] args){
double a=2.5, P,S;P=a*4;
S=Math.pow(a,2);System.out.println("perimetri aris " + P);System.out.println("fartobi aris " + S);
}}
////////////////////////////////////
7/25/2019 davaleba asd1. 2..txt
2/2
3.
package miqamiqa;
public class Dasawyisi {public static void main(String[] args){
double a=2.8 , x= 1.5 , b=1, Y,Z;Y=Math.sqrt(Math.log10(a+b)+x)/Math.exp(x)+1;System.out.println("Y = " + Y);
Z=Math.fabs(Math.pow(x,2)-Math.pow(Y, 2)); // fabs araaqvs amas ??System.out.println("Z= " +Z);
}}
//////////////////////////
5.