How i code for sum of two integers and write its output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How i code for sum of two integers and write its output

13th Sep 2021, 8:28 AM
Shraddha patel
Shraddha patel - avatar
3 Answers
+ 3
Shraddha, that depends on what language. Usually you can sum integers with the built in addition operator: Python print(5 + 2) C++ std::cout << (5 + 2); C printf("%i", (3 + 4)); C# System.Console.Write(5 + 4); Javascript console.log(2 + 4);
13th Sep 2021, 9:02 AM
DavX
DavX - avatar
+ 2
Shraddha patel , your question is not as it should be. if you really have a problem, we need some more details from you: ▪︎give a clear and complete description about your task ▪︎if your question is related to an exercise in a tutorial, please mention the tutorial name and the lesson number ▪︎if there are error messages please post them here ▪︎give at least one sample with input data and the expected output ▪︎to be able to find out the issues you have, we need to see your code     => please put your code in playground, save it there and post a link to it here. thanks for your understanding!
13th Sep 2021, 9:48 AM
Lothar
Lothar - avatar
+ 1
Shraddha patel its not a big task if you know basic data types then Easily you can do it
13th Sep 2021, 10:59 AM
A S Raghuvanshi
A S Raghuvanshi - avatar