160809312 王仲超 三

#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 ()
{
    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()
{
    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()
{
    char score;
    printf("请输出等级:");
    scanf ("%c",&score);//A B C D E
    switch (score)
  {
    case‘A‘:
    printf ("90~100");
    break;
    case‘B‘:
    printf("80~89");
    break;
    case‘C‘:
    printf("70~79");
    break;
    case‘D‘:
    printf("60~69");
    break;
    case‘E‘:
    printf("0~59");
    break;
    default:
    printf("输入有误\n");
    break;
  }
  return 0;
#include<stdio.h> 
int main()
{
    int F=100;
    int C;
    C=(5*(F-32)/9);
    printf("%d",C);
    return 0;
#include<stdio.h>
#include<math.h>
int main()
{
    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);
#include<stdio.h>
int main()
{
    int a,b,c,d;
    a=152;
    b=a/100;
    c=(a/10)%10;
    d=a%10;
    printf("百位是%d 十位是%d 个位是%d",b,c,d);
    return 0;
#include<stdio.h>//求下落距离
int main()
{
    int t=3;
    int g=10;
    int H;//下落高度
    H=0.5*g*t*t;
    printf("f(t)=%d",H);
    return 0;
}
#include <stdio.h>
int main()//电费
{
   int c ;
   double f;
   scanf("%d",&c);
   if(c<=50)
     {f=0.53*c;}
   else
     {f=50*0.53+(c-50)*0.05;}
   printf("费用为:%lf",f);
   return 0;
}
时间: 2024-10-12 18:33:05

160809312 王仲超 三的相关文章

王仲超 160809312 会的都敲上了

# include <stdio.h> int main() { int x,y,z,a,b; printf("请输入三个要比较的整数:"); scanf("%d %d %d",&x,&y,&z); if (x>y) { a=x; } else { a=y; } if (a>z) { b=a; } else { b=z; } printf("最大的数为:%d",b); return 0; } #in

王仲超 160809312

#include <stdio.h> int main() { int i,a[100],n=0; for(i=0;i<100;i++) { a[i]=i+1; if(a[i]%3 ==0 || a[i]%7 == 0) a[i]=0; else if(a[i] != 0) n++; } printf("数组中剩余的个数为:%d\n",n); printf("这些数为:\n"); for(i=0;i<100;i++) { if(a[i] !=

Linux学习老王视频第三周

1.总结vim命令行模式常见快捷方式,以及vim查找,替换的方法 (1).vim命令行常见的快捷方式 :wq 保存退出Vim:wq! 强制保存退出Vim:q! 强制退出不保存,放弃保存修改的情况:w filename 另存为filenameG :$ 移动到最后一行gg :1 移动到第一行舅,同100g 100G :100 移动到第100行0 ^ 光标所在位置移动到当前行行首$ 光标所在位置移动到当前行行尾 (2).vim查找,替换的方法 输入 "/" 即可进入命令行的查找模式,注意的是

汇编语言(王爽 第三版)第十七章字符串的输入

assume cs:code data segment db 128 dup (0) data ends code segment start: mov ax,data mov ds,ax mov dh,24 mov dl,2 mov si,0 call getstr mov ax,4c00h int 21h getstr: push ax getstrs: mov ah,0 int 16h cmp al,20h jb nochar mov ah,0 call charstack mov ah,

汇编语言(王爽 第三版)实验十六

与原实验稍有不同,实现的功能为按下1键清屏 按下2键设置前景色为蓝色 按下3键设置背景色为白色 按下4键向上滚动一行 assume cs:code stack segment db 128 dup (0) stack ends code segment start: mov ax,stack mov ss,ax mov sp,128 mov ax,cs mov ds,ax mov ax,0 mov es,ax mov di,204h mov si,offset int9 mov cx,offse

汇编语言(王爽 第三版)实验十五

assume cs:code stack segment db 128 dup (0) stack ends code segment start: mov ax,stack mov ss,ax mov sp,128 push cs pop ds mov ax,0 mov es,ax mov si,offset int9 mov di,204h mov cx,offset int9end-offset int9 cld rep movsb push es:[9*4] pop es:[200h]

汇编语言(王爽 第三版)实验十二

assume cs:code code segment start: mov ax,cs mov ds,ax mov si,offset do0 mov ax,0 mov es,ax mov di,200h mov cx,offset do0end-offset do0 cld rep movsb mov ax,0 mov es,ax mov word ptr es:[0*4],200h mov word ptr es:[0*4+2],0 mov ax,4c00h int 21h do0: jm

汇编语言(王爽 第三版)实验十四

assume cs:code code segment s1: db 9,8,7,4,2,0 s2: db 'yy/mm/dd hh:mm:ss','$' start: mov ax,cs mov ds,ax mov si,offset s1 mov di,offset s2 mov cx,6 s: push cx mov al,ds:[si] out 70h,al in al,71h mov ah,al mov cl,4 shr ah,cl and al,00001111b add ah,30

汇编语言(王爽 第三版)实验十三

2)显示八十个‘!’ assume cs:code code segment start: mov ax,cs mov ds,ax mov si,offset show mov ax,0 mov es,ax mov di,200h mov cx,offset showend-offset show cld rep movsb mov ax,0 mov es,ax mov word ptr es:[7ch*4],200h mov word ptr es:[7ch*4+2],0 mov ax,0b8