标签:
#include<stdio.h> int main() { printf(" * * * * * * * * * *\n"); printf(" * * * * * * * * *\n"); printf(" * * * * * * * *\n"); printf(" * * * * * * *\n"); printf(" * * * * * *\n"); printf(" * * * * *\n"); printf(" * * * *\n"); printf(" * * *\n"); printf(" * *\n"); printf(" *\n"); return 0; }
#include<stdio.h> int main()//
#include<stdio.h> #include<math.h> int main()//
#include<stdio.h> int main()//求152个十百位。。。。
#include<stdio.h> int main()//
#include<stdio.h> int main()//落体 {
#include<stdio.h> #include<math.h> int main()//温度 { int c; int f; printf("请输入华氏温度:\n"); scanf("c=%d",&f) ; c=5*(f-32)/9; return 0; }
int height; int t=3; int g=10; height=0.5*g*t*t; printf("%f\n",height); return 0; }
{ printf("*\n"); printf("* *\n"); printf("* * *\n"); printf("* * * *\n"); printf("* * * * *\n"); printf("* * * * * *\n"); printf("* * * * * * *\n"); printf("* * * * * * * *\n"); printf("* * * * * * * * *\n"); printf("* * * * * * * * * *\n"); }
{ int a=152; int b; int c; int d; b=a/100; c=(a/10)%10; d=a%10; printf("%d %d %d",b,c,d); }
{ double x; double y; scanf("%lf",&x); if(x>=0) y=sqrt(x); else y=pow(x+1,2)+2*x+1/x; printf("f(x)=%f",y); return 0; }
{ printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); printf("* * * * * * * * * *\n"); }
标签:
原文地址:http://www.cnblogs.com/xiuyi/p/5918107.html