[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Strings

Home > Programs > Strings

56 / 60

Write a program to enter a string then count the no. of vowels in the string.

Answer:

#include 
using namespace std;
int main()
{
    char line[150];
    int vowels, consonants;
    vowels =  consonants = 0;
    cout ='a'&& line[i]='A'&& line[i]

Asked In :: IBM

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: