0
need solve
I want to get result 23+ 25= 48, and it should be visible in program
11 odpowiedzi
+ 5
cout << "23 + 25 = " << (23 + 25) << endl;
??
+ 2
int a=23, b=25;
cout << a << " + " << b << " = " << a + b << endl;
+ 2
Thanks boss kro, I wanted that
+ 1
You mean this ?
#include <iostream>
using namespace std;
int main(void) {
int a;
int b = 10;
cout << "Enter a : ";
cin >> a;
cout << a << "+" << b << "=" << a+b;
/* Input : 5
Output : 15 */
return 0;
}
0
I want to see it using a or b...
I mean a = 12, b= 13
then output 12+ 13 = 25
but I want to use a & b in my code
0
then use
int a=12,b=13;
cout << a+b << endl;
is this what u want?
0
shaafi, are u bangaliii??
0
yes..
0
bangladeshi?
0
cout<<"23 + 25 = "<< (int )23+25
0
and ; in the end