#include<iostream>
using namespace std;
class anik
{
public :
int id;
double cgpa;
rob()
{
cout << "ID :: " << id << "\nCGPA :: " << cgpa << endl;
}
anik(int x, double y)
{
id = x;
cgpa = y;
}
};
int main()
{
anik a(18101073, 3.75);
a.rob();
return 0;
}
using namespace std;
class anik
{
public :
int id;
double cgpa;
rob()
{
cout << "ID :: " << id << "\nCGPA :: " << cgpa << endl;
}
anik(int x, double y)
{
id = x;
cgpa = y;
}
};
int main()
{
anik a(18101073, 3.75);
a.rob();
return 0;
}
Comments
Post a Comment