
An absolute trick to consume WCF WebService at Xamarin Form PCL root
Technical Leading is obviously supported by Technical Reading
Here I collect the links and the posts dealing with Techical Reading covering IT area which I consider worth saving. Mostly they are reposted from my aggregation of RSS feeds See also twitter #tr @moudrick where I post and repost them too
public class fib {
public static void main(String[] args) {
Scanner scan = new Scanner (System.in);
System.out.println("Enter a number: ");
int num = scan.nextInt();
System.out.println(calculate(num));
}
private static int calculate(int n){
if (n <= 1)
return 1;
else
return calculate(n - 1) + calculate(n - 2);
}
}
We all know that Java is fairly verbose. So yeah, this isn't the shortest program ever (especially with the included boilerplate). But it's recursive and takes an input and does what we need it to do.