Showing posts with label sum of two numbers. Show all posts
Showing posts with label sum of two numbers. Show all posts

Tuesday, 17 October 2017

Sum of two numbers in c++

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
        int var1, var2;
        cout<<"Enter two numbers for sum\n";
        cin>>var1>>var2;
        cout<<"Sum of "<<var1<<" and "<<var2<<" is "<<var1+var2;
        getch();
        return 0;
}

Output


Python Program to find Fabonacci

fabtab={} def fabonacci(n):     fabtab[0]=0     fabtab[1]=1     for i in range(2,n+1):         fabtab[i]=fabtab[i-1]+fabtab[i-2]         ...