Advertisements
Advertisements
प्रश्न
Correct the following code sigment:
if (x = 1)
p = 100;
else
p = 10;
तक्ता
उत्तर
Given Code | Corrected Code |
if (x = 1) p = 100; else p = 10; |
if(x == 1) |
shaalaa.com
Statements
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
What is the alternate name of the null statement?
In C++, the group of statements should be enclosed within: ______
Identify the odd one from the keywords of jump statements?
What are a null statement and compound statement?
Compare an if and a ? : operator.
Write a program to find the LCM and GCD of two numbers.
Write a program to find sum of the series
S = 1 + x + x2 +..... + xn