摘要: 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 阅读全文
posted @ 2021-05-06 23:20 小鲨鱼2018 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 第一个java程序。 package hello; public class Hello { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello W 阅读全文
posted @ 2021-05-06 21:56 小鲨鱼2018 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 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 = "); 阅读全文
posted @ 2021-05-06 19:04 小鲨鱼2018 阅读(4305) 评论(0) 推荐(0) 编辑
摘要: c语言中while语句控制程序循环的次数 1、 #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); while(i-- > 0) { 阅读全文
posted @ 2021-05-06 18:33 小鲨鱼2018 阅读(583) 评论(0) 推荐(0) 编辑