其他分享
首页 > 其他分享> > 实验任务4

实验任务4

作者:互联网

#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; 
}

 

标签:int,d%,age2,age1,任务,实验,gender2,gender1
来源: https://www.cnblogs.com/ly1212/p/16063792.html