import java.io.* ;
public class Roman
{
public static void main(String[] args)throws IOException
{
InputStreamReader reader = new InputStreamReader(System.in) ;
BufferedReader br = new BufferedReader (reader) ;
System.out.print("Enter any decimal number between 1 and 59 : ") ;
int n = Integer.parseInt(br.readLine()) ;
String c[] = {"I","II","III","IV","V","VI","VII","VIII","IX","X","L"} ;
String s = "" ;
int t ;
if(n <= 10)
System.out.println("The number '"+n+"' in ROMAN notation is '"+(c[n-1])+"'") ;
else if(n > 10 && n <= 59)
{
int y = n/10 ;
int r = n%10 ;
if(y 0)
s = s+c[10] ;
}
else
{
if(r!=0)
s = s+c[r-1] ;
}
System.out.println("The number '"+n+"' in ROMAN notation is '"+s+"'") ;
}
else
System.out.println("!! FATAL ERROR !! [ No. Greater than 59 ] ") ;
}
}
Chat with our AI personalities
Assert command checks whether the given condition is true or false. Let's say we assert whether the given element is present on the web page or not. If the condition is true then the program control will execute the next test step but if the condition is false, the execution would stop and no further test would be executed.coming to verify command, it is also checks whether the given condition is true or false. Irrespective of the condition being true or false, the program execution doesn't halts i.e. any failure during verification would not stop the execution and all the test steps would be executed. Source : I am senior programmer @ quontra solutions
CLC is the command used for this purpose. CLC clears the command window and homes the cursor
XXI Bomber Command was created in 1944.
command window is a window in matlab environment, role of command window is that it shows output of some particular programme other than graph.
CTRL + T is the command used to uncomment data in Matlab.