汇总
+#include | ||
+int main() | ||
+{ | ||
+ int a[5],b[5][5]; | ||
+ int i,j,sum,max,m,n; | ||
+ printf('输入5个整数\n'); | ||
+ for(i=0;i<5;i++) | ||
+ scanf('%d',&a[i]);//输入数据 | ||
+ for(i=0;i<5;i++) | ||
+ { | ||
+ sum=0; | ||
+ for(j=i;j<5;j++)//从第一位开始往后相加求和 | ||
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.event.MouseEvent; | |
import java.awt.event.MouseMotionListener; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
public class Demo04 { | |
private int x = 100; | |
private int y = 250; |