বৃহস্পতিবার, ১৬ এপ্রিল, ২০১৫

Evaluate IF Else Condition with case ..

//Developed By 2279 Muhammad Rakib Hasan.
//CTST2354
//Evaluate IF Else Condition

#include<stdio.h>

int main(){
char rain_status;

printf("\n\n\n Please Enter Present Rain Status,Where Y is for Rain And N for not :",rain_status);
scanf("%c",&rain_status);

if(rain_status=='y'){
printf("\n\n\n You Have to Open Your Umbrella \n\n\n\n");
}
else if(rain_status=='n'){
printf("\n\n\n You Have Not Open Your Umbrella \n\n\n\n");
}
else{
printf("\n\n\n Please Enter valid Case");
}


printf("\n\n\n\n\n\n\n\n.................End.....................\n\n\n\n\n\n\n\n");

return 0;
}

Result :




কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন