摘要:
#include<stdio.h> int max(int a, int b)/*定义函数*/ { if (a > b) return a; else return b; } int main() { int a, b, c, maxvalue; printf("请输入三个数:\n"); scanf 阅读全文
摘要:
应用二维数组的知识 杨辉三角特点: 1.第一列和对角线的元素全部为1 2.其他元素等于上一行的当前列的值和上一行中当前列前边一列的值之和 #include<stdio.h> #define N 11 int main() { int a[N][N]={{0},{0,1}};/*初始化第0行和第一行, 阅读全文
摘要:
print("Hello,world!") if 5>2: print("5大于2") #这是一个注释 """这也是一个注释""" x = 5 y = "Hello, World!" print(x) print(y) x = 5 # x is of type int x = "Steve" # x 阅读全文