rabbinur

c=a+b

Aug 6th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include<iostream.h>
  2. #include<stdio.h>
  3. #include<fstream.h>
  4. #include<stdlib.h>
  5. #include<conio.h>
  6.  int main()
  7. {
  8.  int a, b, c, sum;
  9.  clrscr();
  10.  printf("Enter 2 integers to add:""\n");
  11.  cin>>a>>b;
  12.  {
  13.   c=a+b;
  14.   b=a+c;
  15.   a=b+c;
  16.  }
  17.  {
  18.   cout<<"The sum of "<<a<<" and "<<b<<" is "<<c<<"."<<endl;
  19.   cout<<"The sum of "<<a<<" and "<<c<<" is "<<b<<"."<<endl;
  20.   cout<<"The sum of "<<b<<" and "<<c<<" is "<<a<<"."<<endl;
  21.  }
  22.  getch();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment