Computer Science, asked by mandeepkaurbhinder11, 9 months ago

from the code given below calculate the value of p,q,r and t public static void main (String args[ ] {intp,q,r,s,t=1; p=5; q=p-; r=++q; s=-r; t=p+q+r+s+t,;}​

Answers

Answered by Anonymous
0

Answer:

#include <iostream>

int main()

{

int i, j;

cout << "Enter a number: ";

cin >> i;

if (i = 5)

cout << "The number is equal to 5\n";

else

cout << "The numbers is not equal to 5\n";

}

(a) #include <iostream>

(b) int main()

(c) cout << "Enter a number: ";

(d) cin >> i;

*(e) if (i = 5)

Similar questions