whats Error in this program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

whats Error in this program

#include <iostream> using namespace std; int main() { int a, b, sub, div; cin>>a>>b; sub=a-b; cout<<sub<<\t; div=a/b; cout<<div; } https://www.sololearn.com/discuss/1316935/?ref=app

22nd Sep 2019, 6:11 PM
Pukhtoon Khan
Pukhtoon Khan - avatar
6 Answers
+ 2
You need to use simple quotes, not those fancy ones. These: " "
22nd Sep 2019, 6:21 PM
Airree
Airree - avatar
+ 1
You have to put \t inside double quotes: "\t"
22nd Sep 2019, 6:13 PM
Airree
Airree - avatar
+ 1
how to use \t please correct this program
22nd Sep 2019, 6:17 PM
Pukhtoon Khan
Pukhtoon Khan - avatar
+ 1
i just told you how to
22nd Sep 2019, 6:18 PM
Airree
Airree - avatar
+ 1
whats Error in this program #include <iostream> using namespace std; int main() { int a, b, sub, div; cin>>a>>b; sub=a-b; cout<<sub<<“\t”; div=a/b; cout<<div; } like this
22nd Sep 2019, 6:19 PM
Pukhtoon Khan
Pukhtoon Khan - avatar
0
thanks
22nd Sep 2019, 6:31 PM
Pukhtoon Khan
Pukhtoon Khan - avatar