Top 10 Programming Language to learn in 2023

Are you a programming enthusiast looking to stay ahead of the curve in 2023? With the ever-evolving tech landscape, keeping up with the Best Programming Language to learn can be a daunting task. Fear not, as we have compiled a list of the top 10 Programming Languages that you should consider learning in 2023. Python: This versatile language continues to dominate in 2023, with its ease of use, readability, and a vast library of modules. JavaScript: As web development grows increasingly popular, JavaScript remains a crucial player, with its ability to create dynamic and interactive web pages. Java: This language has stood the test of time and remains a popular choice for enterprise software development. C++: A staple in the gaming and systems development industries, C++ offers exceptional performance and memory management. Swift: Apple's preferred language for iOS app development, Swift continues to grow in popularity with its simplicity and reliability. R: As data science and machin...

C Program To Count Vowel,consonant, Special Character & Digits | C Programming

C Program To Count Vowel,consonant, Special Character & Digits

//Program to count vowel,consonant, special character & digits
#include<stdio.h>
#include<string.h>
int main()
{
 int i, vowel=0, cons=0, digit=0, sp=0, digits=0;
 char str[100];
 printf("Enter string:\n");
 gets(str);
for (i=0;i<strlen(str);i++)
{
  if (str[i]=='A'||str[i]=='a'||str[i]=='e'||str[i]=='E'||str[i]=='i'||str[i]=='I'||str[i]=='o'||str[i]=='O'||str[i]=='u'||str[i]=='U')
 {
 vowel++;
 }
 else if ((str[i]>=0&&str[i]<=47)||(str[i]>=58&&str[i]<=64)||(str[i]>=91&&str[i]<=96)||(str[i]>=123&&str[i]<=127))
 {
  sp++;
 }
 else if (str[i]>=48&&str[i]<=57)
 {
  digits++;
 }

}
cons=strlen(str)-vowel-sp-digits;
printf("vowel=%d\nConsonant=%d\nDigits=%d\n)Special Character=%d\n",vowel,cons,digits,sp);
}



OUTPUT

C program to count vowel,consonant, special character and digits

Comments

Popular posts from this blog

Eliminating Epsilon transition (ε-Transitions) | Conversion of Epsilon-NFA to DFA | Conversion of Epsilon-NFA to NFA | Theory Of Computation (TOC)

Top 10 Programming Language to learn in 2023

Doolittle Algorithm: LU Decomposition Algorithm