0 views

Uploaded by Biki Singh

C

- all about being a math major
- Extension Maths 1
- Excel Function Dictionery
- Important Excel Utilities
- godrej
- Discrete Mathematics - Dr. J. Saxl - University of Cambridge
- LCM & HCF
- IMO2008SL
- study link 3 11
- POTWE-13-CP-03-S
- Guide
- Cross-Platform GUI Programming with wxWidgets.pdf
- 44 and Multiples All in a Row - EkMultiples
- daham1-8.doc
- Aptitude
- Santos Linearalgebra
- Reaase.txt
- etec532artsbasedprojfinal
- Smartform as a PDF to Mail Id
- Table of multiplication

You are on page 1of 9

JavaScript program to find the greatest common divisor (gcd) of two positive

numbers

if ( ! b) {

return a;

};

console.log(gcd(2154, 458));

output=2

else

list.push(end_num - 1);

return list;

};

console.log(range(2,9));

3. JavaScript program to compute the sum of an array of integers

if (my_array.length === 1) {

return my_array[0];

else {

};

console.log(array_sum([1,2,3,4,5,6]));

output=21

if (n === 0)

return 1;

else

};

console.log(exponent(4, 2));

output=16

5. JavaScript program to get the first n Fibonacci numbers.

if (n===1)

else

return s;

};

console.log(fibonacci_series(8));

output=[0.1.1.2.3.5,8,13,21]

function is_even_recursion(number)

if (number < 0)

number = Math.abs(number);

if (number===0)

{

return true;

if (number===1)

return false;

else

number = number - 2;

return is_even_recursion(number);

console.log(is_even_recursion(234)); //true

console.log(is_even_recursion(-45)); // false

console.log(is_even_recursion(-45)); // false

output=true

false

false

return half;

{

return half + this.slice(half,this.length).br_search(target);

else

};

l= [0,1,2,3,4,5,6];

console.log(l.br_search(5));

output=5

1.W.A.P to calculate the expression a = 5-2*2/5^3 in vb script

<html>

<head>

<script type="text/vbscript">

Dim a

a = 5-2*2/5^3

document.write(a)

</script>

</head>

<body>

</body>

</html>

<html>

<head>

<script type="text/vbscript">

Dim age

age = InputBox("Enter your age")

If age<18 Then

document.write("You are too young.")

ElseIf age<45 Then

document.write("You are still young.")

ElseIf age<70 Then

document.write("You are getting older.")

Else

document.write("You are too old.")

End If

</script>

</head>

<body>

</body>

</html>

3.vbscript to find the vowel in a word

<html>

<head>

<script type="text/vbscript">

Dim name, length

name = InputBox("Enter your name")

length = Len(name)’Gives length of the input string

For i = 1 To length

txt = Mid(name,i,1)'Returns a specified number of characters from a string, the

first parameter is the string, second parameter is the starting position and third

parameter is the number of characters to return

If txt="a" or txt="A" or txt="e" or txt="E" or txt="i" or txt="I" or txt="o" or

txt="O" or txt="u" or txt="U" Then

counter = counter+1

End If

Next

document.write("Hi " & name & "!!!Your name contains " & counter & " vowels.")

</script>

</head>

<body>

</body>

</html

<script type="text/vbscript">

Function returnResult(ByRef value)

value = value +1

returnResult = value

End Function

Dim x

x=5

call returnResult(x)

document.write(x)

</script>

For i=5 To 0 step -1

WScript.Echo i

Next

4. vbscript to find marks in the subject

<html>

<body>

<script type="text/vbscript">

Option Explicit

‘Dim markE, markM, markT

markE=90

markM=86

markT=markE+markM

document.write("Your marks in English is " & markE & "." & "<br />")

document.write("Your marks in Mathematics is " & markM & "." & "<br />")

document.write("Your total marks is " & markT & ".")

</script>

</body>

</html>

<html>

<body>

<script type="text/vbscript">

Option Explicit

Dim students(19), marks(19)

students(0) = "John"

marks(0) = 95

students(1) = "Emma"

marks(1) = "83"

students(2) = "Kevin"

marks(2) = 87

document.write(students(0) & " has scored " & marks(0) & ".<br />")

document.write(students(1) & " has scored " & marks(1) & ".<br />")

document.write(students(2) & " has scored " & marks(2) & ".<br />")

</script>

</body>

</html>

6. program to find the area

<html>

<head>

<script type="text/vbscript">

Dim intRadius

intRadius = 20

const pi=3.14

area = pi*intRadius^2

document.write(area)

</script>

</head>

<body>

</body>

</html>

- all about being a math majorUploaded byapi-308417892
- Extension Maths 1Uploaded byZac Dewar
- Excel Function DictioneryUploaded bynawazsolangi
- Important Excel UtilitiesUploaded byGagandeep Arora
- godrejUploaded byDhiraj Kunder
- Discrete Mathematics - Dr. J. Saxl - University of CambridgeUploaded bySaifulahmed49
- LCM & HCFUploaded byAbhijit Konwar
- IMO2008SLUploaded byHimansu Mookherjee
- study link 3 11Uploaded byapi-196928388
- POTWE-13-CP-03-SUploaded byscribd-in-action
- GuideUploaded bySamm Sung
- Cross-Platform GUI Programming with wxWidgets.pdfUploaded byAnonymous 41DhRd
- 44 and Multiples All in a Row - EkMultiplesUploaded byNora
- daham1-8.docUploaded byAanand
- AptitudeUploaded byJohn Wilson
- Santos LinearalgebraUploaded byGiovania Nascimento
- etec532artsbasedprojfinalUploaded byapi-249732911
- Reaase.txtUploaded bySteveEbenezerPaul
- Smartform as a PDF to Mail IdUploaded bysanjukm
- Table of multiplicationUploaded bypikazu
- 224993810 Job Interview Questions and AnswersUploaded bySagar Patil
- The Ring programming language version 1.5.1 book - Part 66 of 180Uploaded byMahmoud Samir Fayed
- Physical_Verification_Format__12.04.19_ Punganur.docxUploaded byKV krishnarao
- Exportacion a XcelUploaded byJose Gustavo Sánchez Sandoval
- Ds AssignmentUploaded byAs La
- Quantitative Ability 1Uploaded byAkhil Singla
- 2_5305730446875689132Uploaded bymarwan haza
- Recorder LogUploaded bySevin Lutgen
- The Ring programming language version 1.5 book - Part 156 of 180Uploaded byMahmoud Samir Fayed
- Gateway 5Uploaded byVishnu Kumawat

- Online Registration Synopsis RmpUploaded byNadeem Lone
- Farnaz ReportUploaded byBiki Singh
- Hotel ManagementUploaded byBiki Singh
- My Report on OgoUploaded byBiki Singh
- Project Report on Student Information Management System in phpUploaded byManish Goyal
- poster fields reportUploaded byBiki Singh
- Read Me.txtUploaded byBiki Singh
- Synopsis ExampleUploaded byMohammad Lorgat
- 11.Project-Online Library Management SystemUploaded bybantipartha0286933
- p 6933 Student DB Mgmt SystemUploaded byBalaji Blaster

- CS-8303 Wireless NetworksUploaded byDeepesh
- Assignment 1Uploaded byParthAgrawal
- MATLAB-5Uploaded byShruti Yash
- Al Khalili - Projects ProfileUploaded byJd Ger
- DreamWeaver CS4 Keyboard ShortcutsUploaded byrainbow_color
- Why We Should Choose the Cisco 3850 and 3650 SwitchesUploaded byCassandra Shaffer
- OCCASUploaded bytarunjs8139
- WebUser #454 2018 07 25Uploaded bySlow Hand
- apaformatUploaded byapi-239016140
- Fx BuilderUploaded byMark Izsm Amerson
- How To… Automate BPC 7.0%2c version for the NetWeaver Platform Master Data Loads from BW to BPCUploaded byVasu Mullapudi
- P-2602H-D1A_3.40Uploaded bySven Glazenburg
- Bim Dbms-II Class Note2Uploaded byxrobin
- Fire and Sword 5th editionUploaded bygregariousmonk
- 10.1.1.12.5629Uploaded byDodik Gaghan Saputra
- Camel in ActionUploaded bysatyanarayana
- Mobile JournalismUploaded byapi-26169638
- All ModelsUploaded byJawher JERRAY
- jopera-doodlemap-sc09Uploaded byDanilo Oliveira
- On False Data-Injection Attacks Against Power System State Estimation Modeling and CountermeasuresUploaded byLOGIC SYSTEMS
- SSTPUploaded byAnurag Vashishth
- Manual web dynpro JAVA.pdfUploaded byleumas_01947230
- Proposal ProformaUploaded byNyamutatanga Makombe
- User Manual IMC-1021FXUploaded byoring2012
- Dialog Windows in WebDynpro ABAP ApplicationsUploaded byLeandro Marques
- Sales PromotionUploaded byAnonymous uxd1yd
- AQ SectionA Group18Uploaded byAman Gupta
- Big Brother Windows Client Getting Started Guide 420Uploaded bytartana013
- Environmental Data Management at NOAAUploaded byMlizano
- Cloud Computing Chapter 04Uploaded byghar_dash