英语是我自己教的,语法请。。。呵呵~!
-----------------------------------------
#include<stdio.h>
int main(void)
{ int head,foot,ji,tu; printf("enter head and foot:"); scanf("%d%d",&head,&foot); tu=(foot-2*head)/2; ji=head-tu; printf("ji is:%d\ntu is %d\n",ji,tu); return 0;
}