首页 > 其他分享 >task4

task4

时间:2022-10-18 11:33:54浏览次数:41  
标签:task4 scanf c% a1 a3 printf c3

#pragma warning(disable:4996)
#include<stdio.h>

int main()
{
    double x, y;
    char c1, c2, c3;
    int a1, a2, a3;
    scanf("%d%d%d", &a1, &a2, &a3);
    printf("%d,%d,%d\n", a1, a2, a3);

    scanf("%c%c%c", &c1, &c2, &c3);
    printf("%c%c%c\n", c1, c2, c3);

    scanf("%lf%lf", &x, &y);
    printf("%.1f,%.1f\n", x, y);

    return 0;
}

 

标签:task4,scanf,c%,a1,a3,printf,c3
From: https://www.cnblogs.com/lht22MoonHalo/p/16802032.html

相关文章

  • task4.c
    #define_CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>intmain(){doublex,y;charc1,c2,c3;inta1,a2,a3;scanf("......