mdsk.net
当前位置:首页 >> 求助求助!!哪位大神能教我一下,C语言编程,输入... >>

求助求助!!哪位大神能教我一下,C语言编程,输入...

#include "stdio.h" int main() { int n,i,a[10]={0}; scanf("%d",&n); while(n>0) {a[n%10]++; n/=10; } for(i=0;i

#include int main(void) {int n;for(scanf("%d",&n);n;n/=10){printf("%d\n",n%10);}return 0;}#include int main(void) {int n,i,t;for(i=100;i

#include #include #define LEN 100 /*数组长度上限*/#define elemType int /*元素类型*//*输入数组*/void inputArr (elemType arr[], int len) {int i;for (i=0; i

Known circle radius, column height, programming for circle circumference, cylinder volume, and accurate to the decimal point 2. 1)程序代码; 1) program code; 2)从键盘上分别输入圆半径、圆柱高为 4、8,输出圆周长、圆柱体积。 2, ...

声明两个浮点型变量a、b承载两条直角边的输入值,数据成功输入后调用库三角函数求出斜边,再与a、b相加求得周长;直接用三角形面积公式求得面积。代码如下: #include "stdio.h"#include "math.h"//调用库三角函数需包含此文件int main(int argc...

#include int main(void) {unsigned long n=0;char c;while((c=getchar())!='\n'){n=n*10+c-'0';}printf("%lu\n",n);return 0;}

#include "stdio.h"#define N 10int main(int argv,char *argc[]){int a[N],i,j,k;printf("Please enter the %d integers...\n",N);for(i=0;i

#include unsigned char QT; unsigned char ledtab={0xfe,0xfc,0xf8,0xf0,0xe0,0xc0}; delay(unsigned int x) { unsigned int i,j; for(i=0;i

#include#includeint main() {char instr[80 + 1];char b;int i, j = -1; // j = -1int len;gets(instr);scanf("%c", &b);len = strlen(instr);for (i = 0; i

可以做做看!

网站首页 | 网站地图
All rights reserved Powered by www.mdsk.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com