Write a c program between two strings whether string 1 is greater than string 2 or equal
Answers
Answered by
2
class abc
{
public static void main ( char a, char b )
{
if ( a > b )
{
System.out.println ( " String one is Greater " )
}
else if ( a = b )
{
System.out.println ( " String one is equal to String two" )
}
else
{
System.out.println ( " String two is Greater " )
}
}
}
{
public static void main ( char a, char b )
{
if ( a > b )
{
System.out.println ( " String one is Greater " )
}
else if ( a = b )
{
System.out.println ( " String one is equal to String two" )
}
else
{
System.out.println ( " String two is Greater " )
}
}
}
Similar questions