Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================================
- // Name : lol.cpp
- // Author : Bidyut
- // Version :
- // Copyright : No rights reserved
- // Description : Hello World in C++, Ansi-style
- //============================================================================
- #include <iostream>
- using namespace std;
- void helloWorld();
- int main()
- {
- int a;
- int b;
- int sum;
- cout << "Enter first number \n";
- cin >> a;
- cout << "Enter second number \n";
- cin >> b;
- sum = a + b;
- cout << "The sum of the given numbers is (" << sum << ")" << endl;
- if (sum > 10) {
- cout << "Bidyut Is Awesome!!! \n\n";
- }
- helloWorld();
- return 0;
- }
- void helloWorld(){
- cout << "Test of new function :-)";
- }
Advertisement
Add Comment
Please, Sign In to add comment