public class StringLength
{
public static void main(String args[])
{
String firstString;
String secondString;
System.out.println("Please enter string (group of characters) ");
firstString=sc.nextString();
System.out.println("Please enter second string (group of characters) ");
secondString=sc.nextString();
if(firstString>secondString)
{
System.out.println(); //create blank line
System.out.println("First String is greater than the second string");
System.out.println();
}
else
{
System.out.println("Second string is greater than the first string");
System.out.println();
}
}//closes the main method
}//closes the class.
nahi malum
(ab)*b
Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.
1 2 3
mystrcpy (char* dest, char* src) { while ((*dest++ = *src++) != '\0); }
{char a;...cout > a;cout
Yes, but only if you actually know how to write for strings.
syllabry
Yes and no, program development works in programming codes which are specifically made for humans to be entered, a program can write these programming codes too. The thing is, you would need to write the programming codes yourself before the program can use it in program development. If a program could invent the wheel, then you still need to invent that wheel before the program can. Or atleast until the thinking of the human brain can be translated into mere programming code.
You need to put the strings in an array, and then loop through the array to output the strings. Something like this would be a simple example: ---------------- var strings = ["s1","s2","s3"]; for ( var i in strings ) { document.write( strings[i] ); }
C programm
This is greater > then this