in Education by
int f=100, c; c = (f – 32)/9 * 5; System.out.println(c); Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Finding output – Java Before we find output of the given Program, let’s first know about that what is Java and what is programming. Java is a high level programming language, it was developed by Sun Microsystems in the early early 1990s, it was designed by different platforms. Programming means to create or develop a software which is called a program that contains the instructions to tell a computer what to do. The Output The output of the given program will be 35. Now maybe you are thinking that how 35 cames. So lemme explan that how the 35 cames from the program. We are given, f = 100, and c = (f – 32)/9*5. So by placing the value of f in c = (f – 32)/9*5 and solving the problem, we get : → c = (100 – 32)/9*5 → c = 68/9*5 → c = 7*5 → c = 35 Now, after that in the program c is printing, so the value of c is 35. Hence, the output of the program will be 35.

Related questions

0 votes
    int f=100, c; c = (f – 32)/9 * 5; System.out.println(c); Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    int f=100, C; c= (f – 32)/9 * 5; System.out.println(c); Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    Q.32 :-What will the SWAP macro in the following program be expanded to on preprocessing? will the code compile? ... y); return 0; Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the temperature in Celsius and convert it into Fahrenheit using the following formula ... INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    2. Size of int data type in java. . A32 and 64 B64and64 C32 and 32 D64and 32 Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
0 votes
    int fun(int n) { if(n!=0) { return n – fun(n-5); } else { return n; } } int main(){ int n = 20, z; z = fun(n); printf(“%d”, z); } Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    15. #include #define foo(m, n) m + n int main() { int a = foo(5,13); printf(“%d”, a); Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    int n=10;int res=(n–+10>–n×5)?++n:n++ System.Out.println(res+”,”+n); what is the output Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
0 votes
    Analyse the given program segment and answer the following questions i) write the output of the program segment ii)how many times ... body of the loop gets execute for(int m=5 ; m...
asked Nov 29, 2021 in Education by JackTerrance
...