- 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; }
1 Respuesta
+ 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.