摘要:
输出三个数中的最小值。 #include <stdio.h> int min3(int a, int b, int c) { int min = a; if(b < min) min = b; if(c < min) min = c; return min; } int main(void) { i 阅读全文
摘要:
1、 #include <stdio.h> int min2(int a, int b) { int min = a; if(b < min) min = b; return min; } int main(void) { int x, y; puts("please input two integ 阅读全文
摘要:
第一个java程序。 package hello; public class Hello { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello W 阅读全文
摘要:
c语言中自定义函数计算x的n次方。 1、直接输出形式 #include <stdio.h> int main(void) { int i, x, n; int tmp = 1; puts("please input the values of x and n."); printf("x = "); 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i, j, k, a[2][4][3], b[4][3] = {0}; puts("please input the elements of the array."); for(i = 0; i < 2; i++) 阅读全文