Showing posts with label sum of five marks. Show all posts
Showing posts with label sum of five marks. Show all posts

Tuesday, 17 October 2017

Average of five marks in c++

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
        int a,b,c,d,e;
        float avg;
        cout<<"Enter marks of five marks\n";
        cin>>a>>b>>c>>d>>e;
        avg=(a+b+c+d+e)/5;
        cout<<"Average Marks : "<<avg;
        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]         ...