wfyj.net
当前位置:首页 >> C语言编程题目 >>

C语言编程题目

#include#includevoid main(){ int i,j,k,temp,b1,b2,b3,b4,a1,a2,a3,a4,a5,a6; for(i=10;i 1000 && j < 9999 && (k = pow(i,4)) > 100000 && k < 999999) { temp = j; b1 = temp % 10; temp/=10; b2 = temp % 10; temp/=10; b3 = temp % 10; te...

#include #indefine PI 3.14 int main() { float r; printf("请输入半径:\n"); scanf("%f",&r); printf("此圆的面积是:\n"); printf("%5.2f",PI*r*r); } c语言 C语言是一种计算机程序设计语言,它既具有高级语言的特点,又具有汇编语言的特点...

#include#include int main(){int m, n;int t, sum=0;scanf("%d,%d", &m, &n);while (m

#include void main() { double danjia,huokuan; int shuliang; printf("请输入数量和单价"); scanf("%d,%lf",shuliang,danjia); if(shuliang>=0&&shuliang=50&&shuliang=100&&shuliang=300&&shuliang

#include int main(void) {int y;if(scanf("%d",&y)==1){if(y

#include int main(){ int a,b,c,d; while(scanf("%d.%d.%d.%d",&a,&b,&c,&d)!=EOF){ if(a>0&&a=0&&b=0&&c=0&&d

#include #include int main(){int num;float price;printf("请 输 入 产 品 单 价 \n");scanf("%f",&price);printf("请 输 入 产 品 数 量 \n");scanf("%d",&num);float sales = 1.0;if(num

#include int main(void){ int date_year,date_month,date_day,year,day=0; scanf("%d.%d.%d",&date_year,&date_month,&date_day); scanf(%d",year); if(date_year

#include unsigned long fun1(char *s);unsigned long fun2(unsigned long n);int main(void) {char str[101];while(gets(str)==str){printf("%lu\n",fun2(fun1(str)));}return 0;}unsigned long fun1(char *s){unsigned long t=0;while(*s){if(...

#include #include int main() { int i,j,n; char t[80],strs[5][80]; for(i=0;i

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