answersLogoWhite

0


Best Answer

Addition is an intrinsic operator that applies to all primitive data types, both signed and unsigned. There is no need to program it. The operands can be literal, constant or variable, hard-wired or generated from user-input, it makes no difference whatsoever.

#include<iostream>

int main()

{

std::cout<<"The sum of 1 and 2 is "<<(1+2)<<std::endl;

std::cout<<"The sum of 1.5 and 2.3 is "<<(1.5, 2.3)<<std::endl;

return(0);

}

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

int a = 17;

int b = 12;

int c;

c = a + b;

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a programm for addition of two numbers in C plus plus language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Explain the differences between C Language and C plus plus Language?

i want a c programme....if i have a collection of alphabhate appox 2000 or more...alphabates r repeted... i want to write a prograam such that first 7 terms r wrriten in first line then next 7 alphabets r writen in next line.. not fully clear ?? i would give u an example: TTCATCATTCCTAATATTTTTCTTGTAGTTGTTTTAAAAAAGGAATTAAC ATCCAATATTCTGTATTACATACTGTACACCAGATTTTGATTTCAGAAAA CAATATTTGATGTATAACTTCCACTTAATTTAAATTTAATAAACTTTTAT TTCAGAGATATTTGATTAGTTTACAATCTAAGAGTTATTCTTAAGAGTTT CAGTGGAATTTTCTTAATTTTTCTAAAGATATTCCTACTCTCTTGATCAT ATTCTAAGTACATATGAGTACATGTACATTCTTATACAATGTCTAAATGG GTTAGAAAATTATTATACCTATAGAAGCGAAACTTGGAAATTAATAGAAT CACTTAAACCAAAATCTTTATAAGACACAATTCTATTGATTTTAAAGCTT CTGCTTTCCAGGCTCTGTTTTCCAGAGTTTATAATTACGTAGTTTTTAGT AGATGAAAATAATGGATTCTTGTACCTAACATTTTATCCTCTTAGATCTA AGAGCCGAAGCTATAGAACTTTGTTAGACTATTTGGCAAGCAAAATATAT GACAGTAAATATCAGAATTTTATGGTTTGACCAGCGCTTATCACATTCCC AATTCAGTGAGAAAAATTCATCTGGGACACAACAGGGTACTCTTCTCTGT TTGCCCAGAATCAGCTCTGGATTTTAAGCCCAGACTTCAGTGGACCCAGA TAGAAAATATAAAGTCTCTGATCTATAGGCCACATCAGGATGTTATTTTA TGAAGAGTTCTAGAGCAAGGTTGCGGAAATCGGGGTGGAGATGGGGAGCA GTGACTCCTCCAAATATTCATTGCTAACAGGCCATTCTATGCAGTTTGTT TTAACAAATCCTGGGTTAAACTGAGGCCACAGGACATGATGGGCTGTTCT ATAAAGCATTCTAAGTGGAGAGGAGACGATAGGGCATATGAAATTCACTA AACTCTCTGGAAAAAAAATATGTATATATTAAAAACCAAGACTGGAATCA GTGCAACAGTGGGAACTACCTTTTACAAGTATCCATTGCTTCATAAACTC CATTTGTTTGGACCAATCCCTTAAACAAAAGCAAGGCAAATTTTACATGG ATTTAGAGCCTAGGTCAGGTTATTAGGATTATAAATTTTCCACTGGTATG TCATTGTGATTATCTTTGTTTTTGTCTTTCTGAAAGATTGGATTTTCTAT AACACCTTGTGTAAGAAAATAAAAAACTTGATCTAACTGAA suppose this is a sequence... i want to write first 7 alphabets in first line...(1st to seventh) TTCATCA next 7 in next line...(2nd to ...8th) TCATCAT next 7(3rd to 9th)....and so on.... can u help me to write this programm.... if u write this programm u get a treat from me....


Write a program to add two numbers using oop?

#include&lt;iostream.h&gt; #include&lt;conio.h&gt; void main() { int a, b, c; clrscr(); cout&lt;&lt;"enter the two numbers"; cin&gt;&gt;a; cin&gt;b; c=a+b; cout&lt;&lt;"Addition of two numbers="&lt;&lt;c; getch(); }


How. to. write an. algorthim. to find the. sum of. first. 15 natural. numbers?

Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers


How can you write a program to find the mean resistance in c language given the values of 8 resistances?

"Mean" usually means "average", so you just add the numbers together, then divide by 8.


Write Client and server program in C language using UDP?

Write and run a client and a server program in C-language using UDP

Related questions

Write a c programm to find lowest common factor of two numbers?

A waste of time. The lowest common factor of any two numbers is 1.


Write a program to accept 2 numbers and tell whether the product of the two number is equal to or greater than 1000?

C programm


How do you run c programm with add two numbers?

1. Write the program 2. Compile and link it 3. Execute it by entering its name at command prompt


Who to Write a programme for addition of two 100 digit numbers in c language?

The native C language will not permit the addition of two 100 digit numbers with native data types. Therefore, you need to simulate the 100 digit numbers differently, and that can be done various ways, including using an arbitrary precision math package, or BCD arithmetic, etc.


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


Write a program to multiply two 8 bit numbers in microprocessor 8086?

mov ax,1234hmov bx,03hmul bxhlt( "THIS IS THE PROGRAMM CODING FOR 8 BIT 2NUMBERE'S MULTIPLICATION


Write a program for addition of two numbers in C language?

int main (void) { printf ("%d+%d=%d\n", 6, 7, 6+7); return 0; }


Write a programm to implement the bisection method?

Please see the link for a code with an explanation.


Write an addicion story for two 3-digit number?

write an addition story for two 3-digit numbers. write the answer to your story


How do you programm data bits?

how can study of programming methods to read data from / write data to a USB port


Write an assembly language program to multiply two BCD numbers?

fish


How can you write a java program to play sounds at specific frequencies and amplitudes?

yes and no. it depnds on the programm or PC you use.