1
2 2
3 3 3
4 4 4 4
5 5 5 5 5


how to find using vbscripting

Answer Posted / sumathi

n=inputbox("enter a number")
For i=1 to n
x=" "
For j=1 to i
x=x&vbtab&i
Next
print x
Next

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are values assigned to the variables in the vbscript language?

576


Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?

1553


How will you get a combined string from array of string in vbscript?

546


why do u choose to go for testing why cant for devoloping

1594


Explain different types of segment?

571






What purpose does ‘on error resume next’ serves?

551


Explain vbscript in detail?

617


i need to sort the data using qtp script for this how i need to write a qtp script

3221


What is the main difference between function and sub-procedure?

553


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

608


How to write VB script for login module?

2678


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

1615


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2162


Explain few date functions in vbscript?

613


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

623