I have tried the exact same program using gcc (Target: x86_64-linux-gnu), but getting error messages starting from the first function call:
The compiler returned messages that showed the line numbers in which the error occurred.
hi,
I'm a beginner to UNIX and got some problem in this fibonacci.Please help me out.Here is the code:
fibo()
{
if
then
fibo=` expr {fibo ($1 - 2)} + {fibo ($1 - 1)}` | bc
echo $fibo
fi
}
echo "enter a number:"
read x
#echo "The fibonnacci series for value $x is:"
fibo $x
... (4 Replies)
I am facing problem with Shell script to generate Fibonacci series using recursion i.e. recursive function.
Here is my script:
#!/bin/sh
fibo()
{
no=$1
if ; then
return 0
elif ; then
return 1
else
a1=`expr $no - 1`
fibo $a1
... (10 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Shell script to find sum of first n numbers of Fibonacci series
2. Relevant commands, code, scripts,... (0 Replies)
So, Just for practice, I wrote a simple fibonacci sequence script in bash.
(03:08:02\$ cat fib
#!/usr/bin/bash
ret ()
{
echo -ne "\n"
sleep .5
}
a=1
b=2
echo -n $a #1 A
ret
echo -n $b #2 B
ret (8 Replies)
Hi eneryone,
Im trying to learn about assemply 8085 in order to make a project i have.
First of all which emulator to use? I work in linux and I currently istalled GNUSim8085.
Also, maybe somewhere I can find some simple examples?
The project is about making an array saved in specific... (8 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am trying to convert a C language program over to Sparc Assembley and I am getting Undefined first referenced... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am having a hard time with this assignement i cant get the pfib value to print out the fib sequence.
... (1 Reply)
Hello, I am a beginner to shell programming. Coded the following for Fibonacci series.
#!/bin/bash
fib() {
i=0
j=1
arr=0
arr=1
echo "enter the limit:"
read n
while
do
fo= expr $j - 1
f1=$j
f2= expr $j + 1
arr= expr ${arr} + ${arr}
echo ${arr} (3 Replies)
Discussion started by: Rookie222
3 Replies
LEARN ABOUT DEBIAN
sgen
Mono(sgen) Mono(sgen)
NAME
sgen - Mono XML Serializer GENerator
SYNOPSIS
sgen [options]
DESCRIPTION
Generates pre-compilable custom XML serializer classes for specific types.
OPTIONS
--assembly[:filename] , -a
Specifies the assembly filename to process.
--type[:typefullname] , -t
Explicitly specifies the runtime type to process.
--reference:[filename] , -r
Specifies an assembly filename, which is referenced by the target assembly and thus required to process it.
--compiler:[options] , -c
Specifies compiler options.
--proxytypes , -p
(Not supported yet.)
--debug , -d
Indicates the compiler to generate debug information.
--keep , -k
Indicates the compiler to keep generated temporary source files.
--force , -f
Indicates the generator to force overwriting existing assembly.
--out:[output-directory] , -o
Specifies the output directory for resulting files. By default, it is current directory.
--nologo , -n
Indicates to not print the logo for this tool.
--silent , -s
Indicates the tool to run silently.
--verbose , -v
Indicates the tool to be more verbose on its progress.
--help , -?
Display command line help.
FEATURES
It generates a file which contains a set of classes for custom XML serialization. The resulting classes enable xml serialization faster
since it does not have to generate serialization classes dynamically at run time.
Generated classes are supported only after 2.0 profile.
AUTHOR
Written by Lluis Sanchez Gual
COPYRIGHT
Copyright (C) 2006 Novell.
MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
WEB SITE
Visit http://www.mono-project.com for details
SEE ALSO xsd(1),wsdl(1),genxs(1)
Mono(sgen)