@yogambika

#include<iostream>
using namespace std;
class multiplication
{
    int i,j,r1,r2,c1,c2,a[10][10],b[10][10],k,c[10][10];
    public:
    void getdata();
    void display();
    void multi();
};
void multiplication::getdata()
#include<iostream>
using namespace std;
class fibonacci
{
    long int a,b;
    public:
    fibonacci()
    {
        a=-1;
        b=1;
    }

Employee details

October 05, 2020 · C++
#include<iostream>
using namespace std;
int health=200,tax=300;
class employee
{
    int id,basic,hra,da,gpay,npay,deduction;
    char name[30];
    public:
    void getdata();
    void grosspay();
    void netpay();
#include<iostream>
using namespace std;
void area(int a)
{
    int square=a*a;
    cout<<"\n The area of the square value is:"<<square;
}
void area(int l,int b)
{
    int rectangle=l*b;
    cout<<"\n The area of the rectangle value is:"<<rectangle;

Largest among three numbers

September 24, 2020 · C++
#include <iostream>
using namespace std;
inline int largest(int x,int y,int z)
{
    int max;
    max=x>y?(x>z?x:z):(y>z?y:z);
    return(max);
}
main()
{
    int x1,y1,z1,con;

Prime number

September 24, 2020 · C++
#include <iostream>
using namespace std;
class prime
{
    int i,n,a;
    public:
    void getdata();
    void check();
    void display();
};
void prime::getdata()

Palindrome Number

September 23, 2020 · C++
#include <iostream>
using namespace std;
class number
{
    int n,t,rem,rev;
    public:
    void getdata();
    void check();
    void display();
};
void number::getdata()

Armstrong number

September 23, 2020 · C++
#include <iostream>
using namespace std;
class arm
{
    private:
    int n,r,t,s;
    public:
    void getdata();
    void check();
    void display();
    };

Student Details

September 12, 2020 · C++
#include <iostream>
using namespace std;
class student 
{
    char name[50];
    int rn,mark[25],i,t,n;
    float avg;
    public:
    void getdata();
    void total();
    void average();