Suppose if any oneget 33 or greatr than that then it will be teeated as pass marks otherwise fail. Now, write a program that will get a number from key board and store it to a variable then justify that mark for fail or pass.

#include<stdio.h>
#include<conio.h>
main(){
int bangladesh;
printf(“\nGive your value = “);
scanf(“%d”,&bangladesh);
if(bangladesh >= 33 && bangladesh < 100){
printf(“\n%d is pass mark”,bangladesh);
}
else
{
printf(“n%d is Fail mark”, bangladesh);
}
printf(“\n Hallow !!! Hallow !!”);
}

 

 

 

 

 

 

 

 

 

 

 

 

 

Posted in c++

Leave a Reply

Your email address will not be published. Required fields are marked *