首页 > 其他分享 >task5

task5

时间:2022-10-18 11:45:49浏览次数:47  
标签:task5 int age2 age1 gender2 gender1

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

int main()
{
    int age1, age2;
    char gender1, gender2;

    scanf("%d%c%d%c", &age1, &gender1, &age2, &gender2);
    printf("age1=%d,gender1=%c\n", age1, gender1);
    printf("age2=%d,gender2=%c\n", age2, gender2);

    return 0;
}

 

标签:task5,int,age2,age1,gender2,gender1
From: https://www.cnblogs.com/lht22MoonHalo/p/16802073.html

相关文章

  • task5.c
    #define_CRT_SECURE_NO_WARNINGS#include<stdio.h>intmain(){intage1,age2;chargender1,gender2;scanf("%d%c%d%c",&age1,&gender1,&age2,&g......