- 1

It's an also a method to addin two variables.

#include<iostream> using namespace std; int main() { int a=30,b=20; cout<<"sum="<<a+b; return 0; }

28th Dec 2017, 5:45 PM
Sujay Kundu
Sujay Kundu - avatar
1 Odpowiedź
+ 4
int main() is the method, Start of the program int a = 30,b=20; is initialization of int a and b a+b is multiplying both values i dont think you have created a new method but its within the main method body. im not sure what language this is either but hope this helps.
28th Dec 2017, 8:11 PM
D_Stark
D_Stark - avatar