当先锋百科网

首页 1 2 3 4 5 6 7

#include <stdio.h>

#include <stdlib.h>

 

int main()

{

    int q,w;

    printf("请输入两个整数:");

    scanf("%d %d",&q,&w);

    double e=(q/10)*1000;

    double r=(q%10)*100;

    double t=(w/10)*10;

    double y=w%10;

    printf("组成的四位正整数为:%lf",e+r+t+y);

    return 0;

}