Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Please, Don't Miss Visit My Site:
- https://global-prog.com
- */
- #include <iostream>
- #include <string>
- \\Output
- void main()
- {
- std::cout << 10+5-14 << "\n";
- std::cout << (10*25)-40 << "\n";
- std::cout << (10/10)+9 << "\n";
- return;
- }
- \\Input & Output
- void main()
- {
- int x , y;
- std::cout << "Input the x value : ";
- std::cin >> x;
- std::cout << "Input the y value : ";
- std::cin >> y;
- std::cout << "The x value is : " << x << "\n";
- std::cout << "The y value is : " << y << "\n";
- return;
- }
- \\ Strings
- int main()
- {
- std::string x;
- std::cout << "Enter any string text : ";
- std::cin >> x;
- std::cout << "Your string text is : " << x << "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement