import java.io.*;
class StateCap
{
protected static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
String s[]={"Uttar Pradesh","Maharshtra","West Bengal","Bihar","Jharkhand","Kerala","Tamil Nadu","Madhya Pradesh","Sikkim","Rajasthan"};
String c[]={"Luckhnow","Mumbai","Kolkata","Patna","Ranchi","Tiruvanthapuram","Chennai","Bhopal","Gangtok","Jaipur"};
String x;
do
{
byte a=0;
System.out.print("Enter the State's Name: ");
x=in.readLine();
for(byte i=0;i<s.length;i++)
{
if(x.equalsIgnoreCase(s[i]))
{
System.out.println("Capital: "+c[i]);
a++;
}
}
if(a==0)
System.out.println("SORRY! State not Found!");
System.out.println("Try Again");
}while(x.equalsIgnoreCase("stop")==false);
}
}
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.
{char a;...cout > a;cout
As a noun: The capital of New York State is Albany.As an adjective: In many states, murder is still a capital offense.
Use the tolower() function in the C standard library.
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.
To write "Capital H a", you would simply write the letter "H" followed by the lowercase letter "a".
{Area s the area of cube} {Length is the length of one side of the cube} program AreaofCube; var Area,Length:real; begin write('Enter the length of cube: '); readln(Length); Area:=6*(Length*Length); writeln('The area of cube is ', Area, ' cm^2.'); end.
How to write a program for secant method by mathematica
write a lex program to delete space from the program
write a vb program to find the magic square
write a program to multily 3*3 matrix.
write 3 backwards