write a vbscript for finding the sum of the numbers from 1-
50

Answer Posted / kishore

dim n
n=inputbox("enter a number")
k=(n*(n+1))/2
msgbox k

Is This Answer Correct ?    10 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the filter expression?

634


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1436


Explain the arrays in vb script?

592


How will you reverse a string in vbscript?

621


Which object provide information about a single runtime error in a vbscript?

605






regular expression that will recognize a browser as long as its name property starts with mybrowser

1765


What is vbscript procedures?

603


how to check whether link is disabled in QTP??

5632


What are lbound and ubound in the vbscript language?

609


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1810


i have a problem with this error(this error related edit and delete button,when i click this button in datagrid..i will get this error)"Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." this is my code : <%@ Page Language="VB" Debug="false" %> <%@ import Namespace="Sytem.Data" %> <%@ import Namespace="System.Data.OleDB" %>

(Search Based On Staff I.C No) IC.No (XXXXXX-XX-XXXX)   ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> Total Leave Taken : Days

2349


How can the spaces from the string be removed?

593


How will you get the smallest subscript of an array in vbscript?

814


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

1844


How will you get the exponent of the given number in vbscript?

564