prove 1/3+√2 is rational or irrational numbers
Give the solution in step by step
Answers
Answered by
5
Step-by-step explanation:
Public class taxio
{
Public static void main (string args[ ] )
{
Scanner in =new scanner (system.in);
System.out.println ("enter taxi no");
String tno =in.next line ( );
System.out.println ("enter dist");
int dis = in.next Int ( );
int amt=0;
if(dis <= 5 )
amt=100;
else if (dis <=15)
amt =100+(dis - 5)*10;
else if (dis <=25)
amt = 100+100+(dis - 15)*8;
else
amt =100 +100 +80+( dis - 25)*5;
System.out.println ("taxi no"+tno);
System.out.println ("dist"+dis);
System.out.println ("amt="+amt);
}
Similar questions