//Wondrous Square
import java.io.*;
class Wsq
{
public static void main(String args[])throws IOException
{
int n;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.print("enter input:");
n=Integer.parseInt(br.readLine());
int i,j;
int p[][]=new int[n][n];
System.out.print("Input The Elements:");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
p[i][j]=Integer.parseInt(br.readLine());
}
}
int sum,sum1;
sum=sum1=0;
int f=0;
int com=(int)(1*n*(Math.pow(n,2)+1))/2;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
sum=sum+p[i][j];
sum1=sum1+p[j][i];
}
if((sum!=com)(sum1!=com))
{
f=1;
}
sum=0;
sum1=0;
}
if(f==1)
{
System.out.println("Not A Wondrous Square:");
}
else
{
System.out.println("wondrous Square:");
}
if(f==0)
{
int g=0,k;
System.out.println("Prime No.\t Row \t Index:");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
for(k=1;k<p[i][j];k++)
{
if(p[i][j]%k==0)
{
g++;
}
}
if(g==1)
{
System.out.println(p[i][j]+"\t"+i+"\t"+j);
}
g=0;
}
}
}
}
}
wap to print all the arnstrong no. between 100&1000
difference between constant and static variables in java
Remember that chars in Java are just a special version of ints. Cast the char as an int and you get the Unicode value for it. Fortunately, the group of characters including letters and numbers have the same value in both encoding systems. for (char letter = 'a'; letter <= 'z'; ++letter) { System.out.println("ASCII of " + letter + " = " + (int) letter); }
public class CreateDatabase{ public static void main(){ int a=10; int b=20; int result =a+b; System.out.println(result); } }
CLS PRINT "PROGRAM: Print squares of all even numbers from 1 to 20" PRINT PRINT "number", "squared" PRINT FOR number% = 1 TO 20 IF number% MOD 2 = 0 THEN PRINT number%, number% * number% END IF NEXT END
wap to print all the arnstrong no. between 100&1000
Mobile project doc ? its not clear which kind docs required , bcoz mobile diff client are there BREW ,WAP,J2me Brew (MIxed the java and c tech) WAP fully java , j2me .. adv, java .
yo yo as
difference between constant and static variables in java
public static void main(String[] args) { char val = 'a'; String vals = val + ""; System.out.println("Lower Case: " + vals.toLowerCase()); System.out.println("Upper Case: " + vals.toUpperCase()); }
Remember that chars in Java are just a special version of ints. Cast the char as an int and you get the Unicode value for it. Fortunately, the group of characters including letters and numbers have the same value in both encoding systems. for (char letter = 'a'; letter <= 'z'; ++letter) { System.out.println("ASCII of " + letter + " = " + (int) letter); }
cls total=0 for i=0 to 20 step -2 total = total+i print i ; next i print "total is " total end send by tripti
#include<iostream> using namespace std; int main(void) { int a; int b; { cout << "Please enter a number: "; cin >> a; b = a%2 == 0 ? a*a : a*a*a; cout << "The result is: " << b << endl; } return 0; } - - - //Alternative #include<iostream> #include<cmath>
Some of the top sites are Prodigits, Phoneky, Free Android Games, Free Java Games, Twilight Zone, DownloadWAP, Free MP3 Ringtones, Free Java Apps, MobiGroups, Free Wallpapers, Free Mobile Screensavers.
#include <stdio.h> int main (void) { puts ("in 0 10 010kzvcs"); return 0; }
Samsung s5233 wap code
To get wap on your mobile phone, simply get in touch with your service provider. The provider will give you instructions on how to get wap.