herrDeng網內搜尋

自訂搜尋

Ads

2011年9月8日 星期四

ex1

請用 C/C++/java寫一簡易程式

72 則留言:

B9933019 提到...

public class B1 {


public static void main(String[] args) {

int x;
int y;
x=5;
y=3;
System.out.println(x+y);



}

}

B9933001 提到...
網誌管理員已經移除這則留言。
b9733100 提到...

public class hello {
public static void main(String[] args) {
System.out.println("hello");
}
}

B9733099 提到...

public class hello {

public static void main(String[] args) {
System.out.print("hello");
}
}

b9933021 提到...

public class abc123 {

public static void main(String[] args
)
{
int x;
int y;
x=1;
y=5;
System.out.println(x*y);
}

}

B9933041 提到...

package Hello;

public class hello {

public static void main(String[] args) {
System.out.println("Hello");

}

}

B9933046 提到...

public class xxxx {


public static void main(String[] args) {


System.out.println("Umo");


}

}

B9933045 提到...

public class hello {

public static void main(String[] args) {
System.out.println("hello");
}
}

b9933044 提到...

public class hello {


public static void main(String[] args) {
System.out.println("Hello");
}
}

B9933042 提到...

public class Hello {

public static void main(String[] args) {

System.out.println("Hello");

}

}

b9911126 提到...

public class hi {


public hi() {
}

public static void main(String[] args) {
System.out.print("hi");
}
}

B9933019 提到...

public class B1 {


public static void main(String[] args) {

int x;
int y;
x=5;
y=3;
System.out.println(x+y);



}

}

B9933012 提到...
網誌管理員已經移除這則留言。
B9933055 提到...

B9933055




public class HELLO {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("HELLO");
}

}

B9933004 提到...

public class hello {


public static void main(String[] args) {

System.out.println("QQ");
}

}

b69933024 提到...

public class b9933024 {


public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("hello");
}

}

b9933005 提到...

public class hello {


public hello () {
}

public static void main(String[] args) {
System.out.println("hello");
}
}

B9933014 提到...

public class hello {

public hello() {
}


public static void main(String[] args) {
System.out.println("Hello");
}
}

B9933015 提到...

public class hello {

public hello() {
}
public static void main(String[] args) {

System.out.println("Hello");
}
}

B9933016 提到...

package P1;

public class b9933016
{

public static void main(String[] args)
{
System.out.println("你好");

}

}

B9933054 提到...

package pack1;

public class Hello {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello");
}

}

b9933009 提到...

package Hello;

public class Hello {


public static void main(String[] args) {
System.out.println("Hello");
}

}

B9933050 提到...

System.out.println("你好");

b9933002 提到...
網誌管理員已經移除這則留言。
b9933023張鈺昌 提到...

public class hello {
public hello() {
static void main(String[] args) {
System.out.println("Hello");
}
}
}

B9933011 提到...

public class hello {
public static void main(String[] args) {
System.out.println("hello");


}

}

B9933040 提到...

package hello;

public class hello {

public static void main(String[] args) {


System.out.println("hello");

}

}

B9933057 提到...

package hello1;

public class B9933057 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("HELLO");

}

}

B9933020 提到...

public class Hello {

public Hello() {
}

public static void main(String[] args) {
System.out.println("Hello");
}
}

b9911126 提到...

public class hi {



public static void main(String[] args) {
System.out.print("hi");
}
}

B9933029 提到...

public class HELLO {


public static void main(String[] args) {
System.out.println("hello");

}

}

b9933056 提到...

package Hello;

public class Hello {


public static void main(String[] args) {
System.out.println("Hello");
}

}

B9933003 提到...

package Hello;

public class Hello {


public static void main(String[] args) {
System.out.println("Hello");
}

}

B9733088 提到...

public class hello {

public static void main(String[] args) {
System.out.print("GOOD MORNING YO");
}
}

B9933055 提到...

public class HELLO {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("HELLO");
}

}

b9933005豐智偉 提到...

public class hello {


public hello () {
}

public static void main(String[] args) {
System.out.println("hello");
}
}

b9733115 提到...

public class hello {

public static void main(String[] args) {
System.out.print("GOOD JOB");
}
}

B9933025 提到...
網誌管理員已經移除這則留言。
B9933010 提到...
網誌管理員已經移除這則留言。
B9933018 提到...

package Hello;

public class Hello {


public static void main(String[] args) {
System.out.println("Hello");
}

}

b9733114 提到...

public class Hi {

public Hi() {
}

public static void main(String[] args) {
System.out.print("hi");

}
}

B9933048 提到...

class holle{

public static void main(String[] args){

System.out.println("Holle");

}
}

b9933037 提到...

package Hello;
public class Hello {
public static void main(String[] args)
{ System.out.println("Hello");
}
}

B9933008 提到...

public class Hello {

public static void main(String[] args) {

System.out.println("Hello");
}

}

B9733089 提到...

public class hello{

public static void main(String[] args) {

System.out.println("Hello");

}

b9933034 提到...

package Hello;
public class Hello
{ public static void main(String[] args) { System.out.println("Hello");
}
}

b9933033 提到...

package Hello;
public class Hello
{ public static void main(String[] args) { System.out.println("Hello");
}
}

B9933049 提到...

package P1;

public class hello
{


public static void main(String[] args)
{
System.out.println("Hello");

}

}

B9933036 提到...

package p1;

public class hello {

/**
* @param args
*/
public static void main(String[] args) {
System.out.println("Hello");

}

}

B9933028 提到...

public class helllo {

public static void main(String[] args) {

System.out.println("hello");

}
}

b9933007 提到...

package a1;

public class a1 {


public static void main(String[] args) {

System.out.println("holle");

}

}

B9933051 提到...

public class hello
{

public static void main(String[] args)
{
System.out.println("Hello");

}

}

B9933010-2 提到...

package pack1;

public class A1 {

/**
* @param args
*/
public static void main(String[] args) {
System.out.println("hello");

}

}

b9933002 提到...

public class b9933002 {


public static void main(String[] args) {
int x;
int y;
float z;

x=99 ;
y=88 ;
z=(float)(x+y)/2 ;

System.out.println("B9933002");
System.out.println("平均"+z);


if (z>=60)
System.out.println("B9933002="+z+"及格!!");
else
System.out.println("B9933002="+z+"不及格!!");


}

}

B9933038 提到...

package p1;
public class A1 {
public static void main(String[] args) {
System.out.println("A");
}

}

B9933050 提到...

package pack1;

public class A1 {


public static void main(String[] args) {
System.out.println("你好");
}

}

B9933012 提到...

package pack1;

public class b1 {

public static void main(String[] args) {

System.out.println("你好");

}
}

B99330251 提到...

package pack1;

public class a1 {

/**
* @param args
*/
public static void main(String[] args)
{
System.out.println("hello");

}

}

B9933017 提到...

package p1;

public class A1 {

public static void main(String[] args) {


System.out.println("D");

}

}

B9933001 提到...

package A1;

public class A1 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int x,y;

x=4;
y=6;
System.out.println("x+y="+(x+y));

}

}

B9933043 提到...

package pack1;

public class a1 {

public static void main(String[] args) {


System.out.println("hello");

B9933031 提到...

public class hello {

public static void main(String[] args) {
System.out.println("Hello");

}
}

B9933011 提到...

package Hello;

public class hello{

public static void main(String[] args) {
System.out.println("cat");

}

}

B9933053 提到...

package p1;

public class b1 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

int a;
int b;
a=10;
b=2;
System.out.println(a/b);

}

}

B9933013 提到...

public class B {

public static void main(String[] args) {

System.out.println("hi");

}

}

b9733054 提到...

public class b9733054 {


public static void main(String[] args) {

System.out.println("hello");

}

}

B9933043 提到...

public class A1 {


public static void main(String[] args) {



int a;
int b;
a=5;
b=3;
System.out.println(a+b);



}

}

b9933056 提到...

public class p1 {

public static void main(String[] args) {
int a[]={73,74,62,70,85,71,60,68,85,45,79,74};
int b[]={0,2,2,2,0,3,3,3,3,3,0,0};
int sum=0,cc=0;
double avg;
for (int i=0;i<10;i++)
{
sum+=a[i]*b[i];
cc+=b[i];
avg=(double)sum/cc;
}
System.out.println("avg="+sum/cc);
}
}

B9933043 提到...

public class A1 {


public static void main(String[] args) {

int[]t={94,77,88,90,95,78,65,73,65,73,91,82,90,81};
int[]c={0,2,2,2,0,3,3,3,3,3,0,0};
int sum=0,cc=0;

for(int i=0;i<11;i++)
{
sum+=t[i]*c[i];
cc+=c[i];

}


System.out.println("sum:"+(float)sum/cc);




}

}

b9733054 提到...

public class b9733054 {


public static void main(String[] args) {

System.out.println("hello");
}

}

B9733200 提到...

public class hello {
public static void main(String[] args) {
System.out.println("hello");
}
}

B9933006 提到...

public class hello
{

public static void main(String[] args)
{
System.out.println("Hello");

}

}

Related Posts Plugin for WordPress, Blogger...

熱門文章