PPS Practical 9

PPS Practical 9
  • Aim: Write a program to read marks of a student from keyboard whether the student is pass or fail(using if else).
  • Code:
    //For turbo C++ remove below comments
    #include <stdio.h>
    //#include<conio.h>
    void main()
    {
    	int marks;
    	// clrscr();
    	printf("Enter Marks : ");
    	scanf("%d", &marks);
    	if (marks >= 33){
    		printf("Pass");
    	}else{
    		printf("Fail");
    	}
    	// getch();
    }
  • Output:
  • Output of practical 9

Comments