Tuesday, May 14, 2013

Find The Depertment Using If Else

    /* Find The Depertment Using If Else */
    /*
    ****Salary Grater Then 6000 Then Depertment Is Company****
    ****Salary Between 3000 to 6000 Then Depertment Is Market****
    ****Salary Less Then 3000 Is Sales****
    ****Find The Depertment Using This Upper Criteria****
    */
    /* Suchetan Dey */
   
    #include<stdio.h>
    #include<conio.h>
    void main()
      {
         int id,basic;
         printf("Enter Your Company Id ");
         scanf("%d",&id);
         printf("Enter Your Basic Salary ");
         scanf("%d",&basic);
         if(basic>=6000)
         {
             printf("Your Depertment Is Company ");
         }
         else if(basic>=3000 && basic<6000)
         {
             printf("Your Depertment Is Market ");
         }
         else
             printf("Your Depertment Is Sales ");
         getch();
      }




The Output is :-





No comments:

Post a Comment