Question 7 C Programming Nested Statements Valid F Inside Another Valid O True False Q37198099

QUESTION 7 In c programming, nested if-statements are not valid. (f inside another if is not valid) O True FalseQUESTION 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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.