This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class CountVowel | |
{ | |
public static void main(String s[]) | |
{ | |
Scanner sc = new Scanner(System.in); | |
int count = 0; | |
char ch; | |
System.out.println("Enter The String To Count No. Of Vowels : "); | |
String str = sc.nextLine(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class CountConsonants | |
{ | |
public static void main(String s[]) | |
{ | |
Scanner sc = new Scanner(System.in); | |
int count = 0; | |
char ch; | |
System.out.println("Enter The String To Count No. Of Consonants : "); | |
String str = sc.nextLine(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class CountSpaces | |
{ | |
public static void main(String s[]) | |
{ | |
Scanner sc = new Scanner(System.in); | |
int count = 0; | |
System.out.println("Enter The String To Count No. Of Spaces : "); | |
String str = sc.nextLine(); | |
for(int i=0;i<str.length();i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
void main() | |
{ | |
char s[10][10]; | |
int i,j; | |
clrscr(); | |
for(i=0;i<9;i++) | |
{ | |
for(j=0;j<9;j++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class countWords | |
{ | |
public static void main(String s[]) | |
{ | |
Scanner sc = new Scanner(System.in); | |
int count = 0; char ch; | |
System.out.println("Enter the sentence to count number of words : "); | |
String str = sc.nextLine(); | |
for(int i=0;i<str.length();i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
while(!printf("Hello World Without Using Semicolon")){} | |
if(printf(getch())){} | |
} |