在i.jsp 中,url地址栏输入一个参数,值是整型,要求倒着输出

<%

String k = request.getParameter("k");

int tt = Integer.parseInt(k);

out.println(tt+"<br><br><br>");

 

while(tt>0){

    out.print(tt%10);

    tt= tt/10;

}

%>

猜你喜欢

转载自www.cnblogs.com/wudashuai/p/9153744.html
今日推荐