+ 3

I'm unable to take Alphabetic output after giving alphabetic input .but able when i give number input .

https://www.sololearn.com/learn/CPlusPlus/1607/

7th Sep 2018, 10:59 AM
Mr. Nothing
Mr. Nothing - avatar
6 Respostas
+ 3
Because you also need to change the variable type. Here you have an int, but for a name you need string or array of chars
7th Sep 2018, 11:05 AM
Matthias
Matthias - avatar
+ 3
If i type name insted number in comment section..then this code not working well.
7th Sep 2018, 11:01 AM
Mr. Nothing
Mr. Nothing - avatar
+ 2
#include <iostream> using namespace std; int main() { int a,b; cout << "Please enter a Name \n"; cin >> a; cout << ''Please enter a second name here \n"; cin >> b; return 0; }
7th Sep 2018, 11:01 AM
Mr. Nothing
Mr. Nothing - avatar
+ 2
Ohhh. That's why im unable.
7th Sep 2018, 11:07 AM
Mr. Nothing
Mr. Nothing - avatar
+ 2
Thankyou Dear
7th Sep 2018, 11:07 AM
Mr. Nothing
Mr. Nothing - avatar
+ 2
Now that's working :)
7th Sep 2018, 11:10 AM
Mr. Nothing
Mr. Nothing - avatar