@Kali26

Matrix add & sub in Class.cpp

October 19, 2020 · C++
#include <iostream>
using namespace std;
class matrix
{
    public:
    int a[10][10],b[10][10],c[10][10],d[10][10];
    int r1,r2,c1,c2,i,j;
    void size ()
    {
       cout<<"Enter the value of r1:"<<endl;
       cin>>r1;

Matrix multiplication in Class.cpp

updated October 19, 2020 · C++
#include <iostream>
using namespace std;
class matrix
{
    public:
    int a[10][10],b[10][10],c[10][10],mul[10][10];
    int r1,r2,c1,c2,i,j, k;
    void size ()
    {
        cout<<"Matrix Multiplication"<<endl;
        cout<<"---------------------"<<endl;

Mean value using friend function.cpp

updated October 13, 2020 · C++
#include<iostream>
using namespace std;
class base
{
    int no1,no2; //data members
    public:
    void get() // Member function inside the class
    {
        cout<<"\n Find the Mean value ";
        cout<<"\n *******************";
        cout<<"\n Enter two values = \n";

Fibonacci series using constructor.cpp

updated October 19, 2020 · C++
#include<iostream>
using namespace std;
class fibonacci
{
    long int a,b; //data members
    public:
    fibonacci() //special member function constructor
    {
        a=-1;
        b=1;
       

Sorting on array of elements.cpp

updated October 04, 2020 · C++
#include <iostream>
using namespace std;
int main() 
{
    int a[50], b, i,j, n;
    cout<<"Sorting an Element"<<endl;
    cout<<"__________________"<<endl<<endl;
    cout<<"Enter the Number of elements:"<<endl;
    cin>>n;
    cout<<n<<endl;
    cout<<"\n Enter the Values:- "<<endl;

Array of shapes using fn overloading .cpp

updated October 04, 2020 · C++
#include<iostream>
using namespace std;
int area(int);
int area(int,int);
float area(float);
float area(float,float);
int main()
{
        int s,l,b;
        float r,bs,ht;
        cout<<"  Array of Shapes :- \n";

Employee details using array of object.cpp

updated October 04, 2020 · C++
#include<iostream>
using namespace std;
int health=200, tax=300;
class employee
{
    int id, basic, hra, da,gp, np, deduction, experience;
    char name[30];
    public:
    void getdata () ;
    void grosspay () ;
    void netpay () ;

Largest number in Class.cpp

updated September 23, 2020 · C++
#include <iostream>
using namespace std;
inline int largest (int&a,int&b,int&c)
{
    int big=0;
    if(a>b)
    big=a;
    else
    big=b;
    if(c>big)
    big=c;

Prime Using Class.cpp

September 23, 2020 · C++
#include <iostream>
using namespace std;
class number
{
    int a,i,c=0;
    public:
    void getdata();
    void check();
};
void number::getdata()
{

Palindrome Using Class.cpp

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

Armstrong Using Class .cpp

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

Odd or Even using class.cpp

September 13, 2020 · C++
#include<iostream>
using namespace std;
class num
{
int n;
public:
void getdata();
void check();
};
void num::getdata()
{

Personal Details using class.cpp

updated September 13, 2020 · C++
 #include <iostream>
 using namespace std;
class personaldetails
{
    char name[20],blood[10],gender[10], 
    father[10],mother[10],hobby[20],place[10];
    int age;
    public:
    void getdata(void);
    void display(void);
};

Student Marklist using class.cpp

updated October 02, 2020 · C++
#include <iostream>
using namespace std;
class student
{
    private:
    char Rollno[10];
    char Name[20];
int Sub,i;
int Marks,Total,Avg;
public:
void readdata();
#include <iostream>
using namespace std;
class number
{
int a;
public:
void getdata();
void compute();
};
void number::getdata()
{

Odd or Even using class

updated September 10, 2020 · C++
#include <iostream>
using namespace std;
class number
{
int n;
public:
void getdata();
void check();
};
void number::getdata()
{
 #include <stdio.h> 
#include <stdlib.h> 

  

void main() 
{ 

    FILE *fptr; 

  

Area of the circle

April 25, 2020 · C
#include<stdio.h>
void main()
{
float r;
printf("\n\tAREA OF A CIRCLE");
printf("\n\t---- -- - ------");
printf("\nEnter the radius of the circle:");
scanf("%f",&r);
printf("\n------------------------------------------------");
printf("\nRadius of the given circle:%f",r);
printf("\nArea of the given circle  :%.2f",(3.1428*r*r));

Biggest of three numbers

updated April 18, 2020 · C
#include <stdio.h>
 
void main()
{
 
        int size, i, largest;
        printf("\n Biggest of three numbers");
        printf("\n --------------------------");
        printf("\n Enter the size of the array: ");
        scanf("%d", &size);
        int array[size];

Even Series

updated April 18, 2020 · C
 #include<stdio.h>
int main()
{
	int n,i;
	printf("\n Even Series");
	printf("\n -------------\n");
	printf("Enter a number:");
	scanf("%d",&n);
	printf("Even numbers till %d:\n",n);
	for(i=0;i<=n;i=i+2)
	{