随笔分类 - C study
摘要:#include<stdio.h>#include<string.h>#define DANWEI_PER 3.2808e-2#define INCH_PER 12int main(void){ int feet; float height,inches; printf("Enter a heigh
阅读全文
摘要:#include<stdio.h>#include<string.h>#define WEEK_PER 7int main(void){ int day,week,days; printf("please input day\n"); scanf("%d",&day); while(day>0){
阅读全文
摘要:#include<stdio.h>#include<string.h>#define MAX 10int main(void){ int i,data; i=0; printf("please input a integer\n"); scanf("%d",&data); printf("%d\t"
阅读全文
摘要:#include<stdio.h>#include<string.h>#define MI 60int main(void){ int min,minute,hour; min=minute=hour=0; printf("please input min\n"); scanf("%d",&min)
阅读全文
摘要:#include<stdio.h>#include<string.h>#define GALLON_PER 3.785#define MILEAGE_PER 1.609int main(void){ float mileage,petrol_consumption,mileage_per_gallo
阅读全文
摘要:#include<stdio.h>#include<string.h>#include<float.h>int main(void){ double double_data=1.0/3.0; float float_data=1.0/3.0; printf("%.6f,%.6f\n",double_
阅读全文
摘要:#include<stdio.h>#include<string.h>int main(void){ int i; char name[20],firstname[20]; printf("please input your name:\n"); scanf("%s",name); printf("
阅读全文
摘要:#include<stdio.h>#include<string.h>int main(void){ float speed_load,size_of_file,time_load; printf("please input speed load (Mb/s)and size of file(MB)
阅读全文
摘要:#include<stdio.h>#include<string.h>int main(void){ float hight; char name[20]; printf("please input body hight(cm) and name:\n"); scanf("%f",&hight);
阅读全文
摘要:#include<stdio.h>#include<string.h>int main(void){ float data; printf("please input a data:\n"); scanf("%f",&data); //printf("a. %2.1f\n",data); //pri
阅读全文
摘要:#include<stdio.h>#include<string.h>int main(void){ char name[20]; char firstname[20]; printf("please input name and firstname\n"); scanf("%s",name); s
阅读全文
摘要:#include<stdio.h>#include<string.h>int main(void){ char name[20]; char firstname[20]; printf("please input name and firstname\n"); scanf("%s",name); s
阅读全文
摘要:#include<stdio.h>int main(void){ float i; printf("please input bei data:\n"); scanf("%f",&i); printf("Pintuo is :%f\n",i/2); printf("angsi is :%f\n",i
阅读全文
摘要:#include<stdio.h>int main(void){ int inch; float height; float limi=2.54; printf("please input height:\n"); scanf("%d",&inch); height=inch*limi; print
阅读全文
摘要:#include<stdio.h>int main(void){ double a=3.0*1e-23; int b=950; int c; printf("please input kuake data:\n"); scanf("%d",&c); a=c*b/a; printf("%e",a);
阅读全文
摘要:#include<stdio.h>int main(void){ double a=3.156*1e7; int b; printf("please input your age:\n"); scanf("%d",&b); a=a*b; printf("the age adjust second i
阅读全文
摘要:#include<stdio.h>int main(void){ float i; printf("Enter a floating-point value:"); scanf("%f",&i); printf("fixed-point notation:%f\n",i); printf("expo
阅读全文
摘要:#include<stdio.h>int main(void){ printf("\a"); printf("startled by the sudden sound,sally shouted,\n"); printf("\"By the Great Pumpkin,what was that!\
阅读全文
摘要:#include<stdio.h>int main(void){ int a; printf("please input a ASCII data:\n"); scanf("%d",&a); printf("%c",a); return 0;}
阅读全文
摘要:#include<stdio.h>void one_three(void);void two(void);int main(){ printf("starting now:\n"); one_three(); two(); printf("three\n"); printf("done!\n");
阅读全文
浙公网安备 33010602011771号