QUESTION 7 In c programming, nested if-statements are not valid. (f inside another if is not valid) O True False Show transcribed image text QUESTION 7 In c programming, nested if-statements are not valid. (f inside another if is not valid) O True False
Answer
In c programming, nested if-statements are not valid.
False
- Nested if-statements are allowed in c program.
- Nested if statement is an if statement within another ifstatement.
Program:
#include <stdio.h>
int main() {
int number; // variable declaration
printf(“Enter a positive number:
OR
OR