Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 22nd, 2012  |  syntax: None  |  size: 0.50 KB  |  views: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data