57.2k views
4 votes
Why is the given C++ program is not working?

#include<>
using namespace std;

int main()


1 Answer

2 votes

Answer:

Please find the edited program below:

#include<iostream>

#include <stdio.h>

using namespace::std;

int main()

ch=='U')

cout<<"Vowel";

else

cout<<"Consonant";

return 0;

Step-by-step explanation:

We cannot input char type using cin, we need to use getchar, and it is under header file stdio.h. Also, for comparing we need to use == and not =. And corrrect way of including std is using namespace::std;

User Solangel
by
4.2k points