#include<iostream.h>
#include<conio.h>
class game
{
int a,b,c;
public:
void g()
{
cout<<"Enter value of a<<endl;
cin>>a>>b;
if(a<b)
{
cout<<a,<<endl;
c++;
}
}
};
void main()
{
game g1;
g1.g();
getch();
}
chandan_14
0
Newbie Poster
Recommended Answers
Jump to PostShall we play a game?
- Joshua
All 2 Replies
rproffitt
2,565
"Nothing to see here."
Moderator
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.