SHARE
TWEET

Untitled

a guest Feb 22nd, 2012 11 Never
  1.  
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.  
  7. int x;
  8. int a, b;
  9. char book[20];
  10.  
  11. a=1234;
  12. b=12345;
  13.  
  14. cout<<"Enter Student Number : ";
  15. cin>>x;
  16.  
  17. cout<<"Enter Book : ";
  18. cin>>book;
  19.  
  20. system("cls");
  21.  
  22.  
  23. if(x==a)
  24. {
  25.         cout<<"Student Number : " <<x <<endl;
  26. cout<<"Name : Jan Rafael Teodoro" <<endl;
  27. cout<<"The Book You Borrow is " <<book <<endl;
  28. }
  29. else
  30. {
  31.         cout<<"Student Number : " <<x <<endl;
  32. cout<<"Bryan Zamora" <<endl;
  33. cout<<"The Book You Borrow is " <<book <<endl;
  34. }
  35. return 0;
  36. }
RAW Paste Data
Top