C Program for Classroom Selection

 #include<stdio.h>

void main()

{

    int students;

    printf("Enter number of students: ");

    scanf("%d",&students);


    if(students<=30)

    printf("Room A");

    else

    printf("Room B");

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices