Computer Science, asked by YashaswiniP, 1 month ago

What is the return data type of the following functions:
a) nextInt()
b) Math.sqrt()
c) Math.random
d) Math.PI

please ans all !!​

Answers

Answered by Suchana26
5

Answer:

a. int (integer)

b. double (decimal)

c. double

d. its wrong

Explanation:

i gv all ans to all ur ques here

sry for spell mistk

concept clear

.

.

.

int vowel=0, consounant=0;

char ch='';

{

String st= sc.nextLine();

for(int i=0; i<st.length(); i++)

{

ch= st.charAt(i);

if ( ch='A' || ch='E' || ch='I' || ch='O' || ch='U' || ch='a' || ch='e' || ch='i' || ch='o' || ch='u' )

vowel++;

else

consounant++;

}}

.

.

we can connect and solve doubt through

(the link attach above)

u can comment there

Attachments:
Similar questions