augustofilho — Dec 16, 2013, 1:28 PM
q13p39=function(a){
cat("A tabuada de",a,"eh:\n")
i=0
while(i<=10)
{
cat(a," x ",i, "=" ,i*a,"\n")
i=i+1
}
}
q13p39(10)
A tabuada de 10 eh:
10 x 0 = 0
10 x 1 = 10
10 x 2 = 20
10 x 3 = 30
10 x 4 = 40
10 x 5 = 50
10 x 6 = 60
10 x 7 = 70
10 x 8 = 80
10 x 9 = 90
10 x 10 = 100