首页 > 其他分享 >实验一

实验一

时间:2023-09-28 15:47:49浏览次数:33  
标签:task1 include int 实验 printf main 源代码

task1-1

源代码:

#include <stdio.h>
int main()
{
    printf(" O\n");
    printf("<H>\n");
    printf("| |\n");
    printf(" O\n");
    printf("<H>\n");
    printf("| |\n");
    
}

task1-2

源代码:

#include <stdio.h>
int main() 
{
    printf("  O       O\n");
    printf("< H >   < H >\n");
    printf(" I I     I I\n");

    return 0;
} 

 

标签:task1,include,int,实验,printf,main,源代码
From: https://www.cnblogs.com/BarryM/p/17735908.html

相关文章

  • 实验一
    #include<stdio.h>#include<stdlib.h>#include<time.h>#include<iostream>usingnamespacestd;intmain(){/*task1-1*/for(inti=0;i<=1;i++){printf("O\n");printf("<H>\......
  • 实验一 c语言输入输出和简单程序编写
    task1.c源代码#include<stdio.h>#include<stdlib.h>intmain(){printf("o\n");printf("<H>\n");printf("II\n");return0;}运行结果#include<stdio.h>intmain(){printf("......
  • 实验一
    任务1.1代码1#include<stdio.h>2intmain()3{4printf("O\n");5printf("<H>\n");6printf("II\n");78printf("O\n");9printf("<H>\n");10printf("......
  • 实验1
    //打印一个字符小人#include<stdio.h>intmain(){printf("O\n");printf("<H>\n");printf("II\n");return0;}  1#include<stdio.h>23intmain()4{floata,b,c;5scanf(&q......
  • 实验一
    #include<stdio.h>intmain(){printf("O\n");printf("<H>\n");printf("II\n");return0;} #include<stdio.h>intmain(){floata,b,c;scanf("%f%f%f",&a,&......
  • 第一次实验
    task1.c#include<stdio.h>intmain(){printf("o\n");printf("<H>\n");printf("II\n");printf("o\n");printf("<H>\n");printf("II\n");......
  • 实验2
    实验二源代码#include<stdio.h>#include<stdlib.h>#include<math.h>intmain(){inta,b,c;scanf("%d%d%d",&a,&b,&c);if(a+b>c&&a+c>b&&b+c>a)printf("这三个数可以构成三角形。");......
  • 实验1
    #include<stdio.h>voidHuman(){printf("o\n");printf("<H>\n");printf("II\n");}intmain(){intline=0,i=0;printf("需要几行?\n");scanf("%d",&line);......
  • 实验1
    #include<stdio.h>intmain(){printf("0\n");printf("<H>\n");printf("II\n");printf("0\n");printf("<H>\n");printf("II\n");re......
  • 实验1
    1#include<stdio.h>2intmain()3{4printf("O\n");5printf("<H>\n");6printf("II\n");789return0;10} ......