- 博客(7)
- 收藏
- 关注
翻译 【无标题】九九乘法
#include<stdio.h>int main(){ int i,j; for(i=1;i<=9;i++) { for(j=1;j<=i;j++) printf("%d*%d=%d\t",j,i,j*i); printf("\n"); } return 0; }
2022-04-05 21:12:52
142
原创 三角形面积求法
#include<math.h> int main(){ int a,b,c; float area; double s; printf("请输入三角形的三条边长:"); scanf("%d,%d,%d",&a,&b,&c); s=(a+b+c)/2.0; if(a+b<=c||b+c<=a||a+c<=b) printf("不构成三角形\n"); else {area=sq..
2022-04-01 23:57:59
387
原创 字母大小写转换
#include<stdio.h>int main(){ char c1,c2; printf("请输入一个字符:"); c1=getchar(); if(c1>='a'&&c1<='z') c2=c1-32; else if(c1>='A'&&c1<='Z') c2=c1+32; else c2=c1+1; putchar(c2); return 0;}.
2022-03-28 13:06:49
372
原创 简单贪吃蛇游戏
# include <stdio.h># include <stdlib.h># include <conio.h># include <windows.h># define High 20 //游戏画面尺寸# define Width 30//全局变量int moveDirection; .
2022-03-24 12:42:19
93
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1