//Follow Me On Instagram- www.instagram.com/iammujtaba_official
#include<iostream>
#include<conio.h>
using namespace std;
class statabc
{
int bal;
public:
static int count;
void get()
{
cin>>bal;
count++;
cout<<count;
}
}a,b,c;
int statabc::count=0;
main()
{
a.get();
b.get();
c.get();
getch();
}
#include<iostream>
#include<conio.h>
using namespace std;
class statabc
{
int bal;
public:
static int count;
void get()
{
cin>>bal;
count++;
cout<<count;
}
}a,b,c;
int statabc::count=0;
main()
{
a.get();
b.get();
c.get();
getch();
}
No comments:
Post a Comment