Untitled
Guest 64 30th Oct, 2024
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
function f(l)
{
if(l>=1)
{
document.write('Elementy ciągu Fibonaciego')
if(l==1)
{
document.write('1.');
}
else if(l==2)
{
var a=1;
var b=1;
for(var i=1; i<=l; i++)
{
var pom=a+b;
a=b;
b=pom;
document.write((a+b)+',');
}
}
}
else
{
alert('...');
}
}
f(10);
</script>
</body>
</html>
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Untitled
Markup | 7 | 5 hours ago
- Untitled
Markup | 8 | 5 hours ago
- Parker Vector для офиса
CoffeeScript | 12 | 22 hours ago
- BITCOIN CRACKING SOFTWARE
Elm | 15 | 1 day ago
- Untitled
Markup | 29 | 1 day ago
- Untitled
Markup | 29 | 1 day ago
- Untitled
Markup | 29 | 1 day ago