将输入的字符串按照split("*") 成两个数字字符串(最好再trim下),然后执行乘法即可 ...
include <stdio.h>int main(){long rs;int a,b;scanf("%d*%d", &a,&b);rs=a*b;printf("%ld\n", rs );return 0; }
var n1,n2:real;c:char;s:string;p:integer;begin read(c);s:=c;read(c);while c<>'*' do begin s:=s+c;read(c);end;val(s,n1,p);read(c);s:=c;read(c);while c<>'=' do begin s:=s+c;read(c);end;val(s,n2,p);write(n1*n2);end....