You do not have access for this page.


To access this page please purchase:
TCS Coding Questions with Answers Products
TCS Drive Preparation Online Classes
PrepInsta-SharpSkills Paid Materials Combo
TCS NQT Online Class


Note:- Please purchase the products mentioned above to get access to the page. Also, if you have any queries related to product purchase drop a message on our Facebook page.

Comments

Please Login/Signup to comment

9 comments on “Problem 36”


  • sachin kushwah

    /* this program will help you */
    #include
    void main()
    {
    char arr[100];
    int i,j;
    printf(“Enter string\n”);
    gets(arr);
    for(i=0;arr[i]!=’\0′;i++)
    {
    if(arr[i]==’a’||arr[i]==’o’||arr[i]==’u’||arr[i]==’e’||arr[i]==’i’)
    {
    for(j=i;arr[j]!=’\0′;j++)
    {
    arr[j]=arr[j+1];
    }

    i–;
    }
    }
    printf(“vowels removed\n”);
    printf(“%s”,arr);
    }


  • VIVEK KUMAR

    String str=”Hello Friends!! Chai pi lo”;
    String final_str=””;
    for(int i=0;i<str.length();i++)
    {
    if(Character.toLowerCase(str.charAt(i))=='a' ||Character.toLowerCase(str.charAt(i))=='e' ||Character.toLowerCase(str.charAt(i))=='i' ||Character.toLowerCase(str.charAt(i))=='o' ||Character.toLowerCase(str.charAt(i))=='u') {

    }else {
    final_str=final_str+str.charAt(i);
    }

    }
    System.out.println(final_str);


  • Hritik

    #include
    #include
    int is_vowel(char);
    int main(){
    char sentence[100] , cptstnce[100];
    int i,j=0;
    gets(sentence);
    for(i=0;sentence[i]!=’\0′;i++){
    if(is_vowel(sentence[i])){
    cptstnce[j] = sentence[i];
    j++;
    }
    }
    cptstnce[j] = ‘\0′;
    printf(“%s”,cptstnce);

    }
    int is_vowel(char ch){
    if(ch==’a’ || ch==’e’ || ch == ‘i’ || ch == ‘o’ || ch==’u’ ||ch==’\0′){
    return 0;
    }
    else{
    return 1;
    }
    }


  • anusha anusha

    s = input(“Enter any string to remove all vowels from it: “)
    vowels = (‘aeiou’)
    s = s.lower()
    for x in s:
    if x in vowels:
    s = s.replace(x, “”)
    print(s)

    input:prepinsta
    output:prpnst


  • anusha anusha

    s = input(“Enter any string to remove all vowels from it: “)
    vowels = (‘aeiou’)
    s = s.lower()
    for x in s:
    if x in vowels:
    s = s.replace(x, “”) // Replacing the vowels with ‘’
    print(s)


  • VIJAYA CHANDRA REDDY YERRAGUNTA

    #include
    #include

    int check_vowel(char);

    int main()
    {
    char s[100], t[100];
    int c, d = 0;

    printf(“Enter a string to delete vowels\n”);
    gets(s);

    for(c = 0; s[c] != ‘\0’; c++) {
    if(check_vowel(s[c]) == 0) {
    t[d] = s[c];
    d++;
    }
    }

    t[d] = ‘\0’;

    strcpy(s, t);

    printf(“String after deleting vowels: %s\n”, s);

    return 0;
    }

    int check_vowel(char ch)
    {
    if (ch == ‘a’ || ch == ‘A’ || ch == ‘e’ || ch == ‘E’ || ch == ‘i’ || ch == ‘I’ || ch ==’o’ || ch==’O’ || ch == ‘u’ || ch == ‘U’)
    return 1;
    else
    return 0;
    }


  • monika baskey

    import re
    string=”Hello , how are you”
    re.sub(“A|a|E|e|I|i|O|o|U|u”,” “,string)
    output
    Hll,hw r y


  • Vinuthna

    s=input(“Enter the string:”)
    b=[ ]
    for i in range(len(s)):
    if s[i]==’a’ or s[i]==’e’ or s[i]==’i’ or s[i]==’o’ or s[i]==’u’ :
    b.append[”]
    else:
    b.append(s[i])
    print(”.join(b))