Search
 
SCRIPT & CODE EXAMPLE
 

CPP

write a code that adds two number

#include<iostream>
int main()
{
	int num1=0,int num2=0;	
	int sum=0;
	cin>>num1;
	cin>>num2;
	sum=num1+num2;
	std::cout<<sum;
	return 0;	
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ how to generate a random number in a range 
Cpp :: capture an entire line C++ 
Cpp :: C++ Third angle of a Triangle 
Cpp :: ue4 bind function to button clicked c++ 
Cpp :: c++ index of nth occurence 
Cpp :: c++ execution time 
Cpp :: C++ std::async wait is taking forever 
Cpp :: pairs 
Cpp :: how to make a sqlite3 object in cpp 
Cpp :: average of a matrix c++ 
Cpp :: c++ overwrite file 
Cpp :: how to sort a string in c++ 
Cpp :: reverse an array using pointers in c++ 
Cpp :: sort in descending order c++ stl 
Cpp :: xmake set exe name 
Cpp :: c++ absolute value 
Cpp :: reading in lines from a file to a vector c++ 
Cpp :: vector of int to string c++ 
Cpp :: hello world C++, C plus plus hello world 
Cpp :: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": 
Cpp :: maximum value in map in c++ 
Cpp :: c++ map iterator 
Cpp :: C++ Multi-line comments 
Cpp :: count occurrences of character in string c++ 
Cpp :: c++ compare time 
Cpp :: http.begin not working 
Cpp :: substring to int c++ 
Cpp :: conditional variable c++ 
Cpp :: abs in c++ 
Cpp :: how to make a typing effect c++ 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =