Avatar of clinton Pitas
clinton Pitas
 asked on

Guys help please!!!

I'm having trouble with my %ctr% dont know if its the right code for this
what I'm looking is if you multiply 7 to 7 the output should come to this:
1 x 7=7
2 x 7=14
3 x 7=21
4 x 7=28
5 x 7=35
6 x 7=42
7 x 7=49

Open in new window

this is my code:
@echo off

:start

set /p i=insert a number:
set /p a=multiplied times:
goto multi

:multi
set /a ctr=%ctr%+1 -->problem
set /a pro=%i%*%a%
echo %i% x %a%=%pro%
pause

goto start

Open in new window



thanks Guys :)
Microsoft DOS

Avatar of undefined
Last Comment
oBdA

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
clinton Pitas

ASKER
Thank you oBdA,,,
Im very grateful to you and also gave me an advice...
hope to ask you again sometimes... :)
oBdA

Question answered.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck