Advertisement
rorschack

c++ prac prog - 11

Aug 3rd, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. void main()
  2. {
  3.     int a,b,noy;
  4.     clrscr();
  5.     cout << "Enter the organisation joining year : ";
  6.     cin >> a;
  7.     cout << endl << "\nEnter the current year : ";
  8.     cin >> b;
  9.     noy = b - a;
  10.     if(noy>3)
  11.         cout << "\n\nYou are eligible for a Rs.2500 bonus." << endl;
  12.     getch();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement