Facebook Sharer
选择您要替换的背景颜色:
【农历新年】背景图片:
个性化设定
 注册  找回密码
查看: 394|回复: 0
打印 上一主题 下一主题

请问有人知道关于batch用if goto set/A 弄乘法表吗

[复制链接]

4

主题

0

好友

11

积分

初级会员

Rank: 1

跳转到指定楼层
1#
发表于 2015-10-12 03:36 PM |只看该作者 |倒序浏览
比如我要输入一个3 就会出现
1x1
2x1
3x1
4x1
5x1
6x1 以此推类 到12x3 的方法
目前我只会
@echo off
set name=ng
echo name : %name%

set /p x=

set /a total=%x%*1
echo 1 * %x% = %total%

set /a total=%x%*2
echo 2 * %x% = %total%

set /a total=%x%*3
echo 3 * %x% = %total%


set /a total=%x%*4
echo 4 * %x% = %total%

set /a total=%x%*5
echo 5 * %x% = %total%

set /a total=%x%*6
echo 6 * %x% = %total%

set /a total=%x%*7
echo 7 * %x% = %total%

set /a total=%x%*8
echo 8 * %x% = %total%

set /a total=%x%*9
echo 9 * %x% = %total%

set /a total=%x%*10
echo 10 * %x% = %total%

set /a total=%x%*11
echo 11 * %x% = %total%

set /a total=%x%*12
echo 12 * %x% = %total%

pause




收藏收藏0
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2024-11-20 04:32 AM , Processed in 0.101873 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

Ultra High-performance Dedicated Server powered by iCore Technology Sdn. Bhd.
Domain Registration | Web Hosting | Email Hosting | Forum Hosting | ECShop Hosting | Dedicated Server | Colocation Services
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部