write a vbscript for finding the sum of the numbers from 1-
50
Answer Posted / ankita
dim i ,n ,sum as integer
n=50
sum=0
for i=1 to n
sum=sum+i
msgbox("sum of 1 o 50 no. =" +sum)
next
| Is This Answer Correct ? | 19 Yes | 7 No |
Post New Answer View All Answers
please can you help me to get a code of flames using a visual basic 6
What purpose does ‘on error resume next’ serves?
how does vb script help in web page designing? explain with example.
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
Mention how you can call vbscript functions?
regular expression that will recognize a browser as long as its name property starts with mybrowser
What is the use of the date function in the vbscript language?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
Explain How do you create a recordset object in vbscript?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
How will you format a number in percetage format in vbscript?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...