calculate tag

7 questions


1 answers
95 views
0
It's the calculation code for the four-day operation using Java generic stack, but the nullPointerException error keeps popping up

It's a code that uses generic stacksI keep getting a nullpointerception error like that.Below is the full code. } import java.util.*;class GStack<T> {static int top;Object [] stck;public GStack(...

1 years ago

1 answers
123 views
0
Is there a way to calculate between long double types in C language?

#include <stdio.h>#include <math.h>int main(void){ double x,y; printf(Please enter x and y : ); scanf(%lf %lf, &x, &y); long double z = ((x + sqrt(x*x+y*y))/2.0); printf(The value ...

1 years ago

1 answers
65 views
0
The shared preference putFlot does not allow decimal point calculation by division of integers during the operation.

Both activities share computational results as shared preferences.If you press the correct view in the activity where the four-point multiple questions are printed, The values of the keys totaltry and...


3 answers
83 views
0
It's a simple operator problem.

package sec06.exam03;public class Exercise02 {public static void main(String[] args) { int x = 10; int y = 20; int z = (++x) + (y--); System.out.println(z);//30}}Isn't it normal when the answer is 30...

1 years ago

1 answers
123 views
0
To avoid calculating the square root in Python

I'm making some kind of equation. But it's hard to see because the square roots in the equation are calculated and printed out.How can I prevent the square root from being calculated? I hope the squar...

1 years ago

1 answers
86 views
0
How do I print out the program?

1) Initialize number 2 for integer variable num 2) Perform shift operation on num variable 3) 'The result of 1 shift operation of 2 is 4' output 4) Perform shift operation on num variable 5) '2 is shi...

1 years ago

1 answers
62 views
0
cLanguage math questions

#include <stdio.h>int main() { int A, B, C, D, E, F; scanf(%d%d%d\n, &A, &B, &C); scanf(%d%d%d, &D, &E, &F); printf(%d\n, ((A * 100) + (B * 10) + C) * F); printf(%d\n, ((...

1 years ago

© 2024 OneMinuteCode. All rights reserved.