C language interview questions solution for freshers beginners placement tricky good pointers answers explanation operators data types arrays structures functions recursion preprocessors looping file handling strings switch case if else printf advance linux objective mcq faq online written test prime numbers Armstrong Fibonacci series factorial palindrome code programs examples on c++ tutorials and pdf
#include #include int main(void) { int call=0,Reject=0,avg,t1,t2,t3,i,Offer=0,R1,R2,choice=1; char name; while(choice==1) { /*printf("enter the name of the candidate :\n"); scanf("%c",&name);*/
printf("enter the test values of :\n"); scanf("%d%d%d",&t1,&t2,&t3); avg=((t1+t2+t3)/3); printf("average=%d",avg); if(t1>75&&t2>75&&t3>75&&avg>=80) { printf("interview call letter sent to the candidate\n"); call++; } else { printf("Reject cal letter sent to the candidate\n"); Reject++; printf("IF YOU WANT TO CONTINUE ELSE PRESS ANY NUMBER\n"); scanf("%d",&choice); continue; }
printf("Round 1 marks of the candidate:"); scanf("%d",&R1); printf("Round 2 marks of the candidate:"); scanf("%d",&R2);
if(R1>5&&R2>7) { printf("Offer letter sent to the candidate\n"); Offer++; } else { printf("Rejectleter sent to the candidate"); Reject++; printf("IF YOU WANT TO CONTINUE ELSE PRESS ANY NUMBER\n"); scanf("%d",&choice); continue; } printf("IF YOU WANT TO CONTINUE ELSE PRESS ANY NUMBER\n"); scanf("%d",&choice); }
printf("NO OF MEMBERS GOT THE INTERVIEW CALL LETTER:%d\n",call); printf("NO OF MEMBERS GOT THE OFFER LETTER:%d\n",Offer); printf("NO OF MEMBERS GOT THE REJECTION LETTER:%d\n",Reject);
4 comments:
Thanks You Very very much u saved my time
Thanks
Noushadali
thank u so much
thank u
#include
#include
int main(void)
{
int call=0,Reject=0,avg,t1,t2,t3,i,Offer=0,R1,R2,choice=1;
char name;
while(choice==1)
{
/*printf("enter the name of the candidate :\n");
scanf("%c",&name);*/
printf("enter the test values of :\n");
scanf("%d%d%d",&t1,&t2,&t3);
avg=((t1+t2+t3)/3);
printf("average=%d",avg);
if(t1>75&&t2>75&&t3>75&&avg>=80)
{
printf("interview call letter sent to the candidate\n");
call++;
}
else
{
printf("Reject cal letter sent to the candidate\n");
Reject++;
printf("IF YOU WANT TO CONTINUE ELSE PRESS ANY NUMBER\n");
scanf("%d",&choice);
continue;
}
printf("Round 1 marks of the candidate:");
scanf("%d",&R1);
printf("Round 2 marks of the candidate:");
scanf("%d",&R2);
if(R1>5&&R2>7)
{
printf("Offer letter sent to the candidate\n");
Offer++;
}
else
{
printf("Rejectleter sent to the candidate");
Reject++;
printf("IF YOU WANT TO CONTINUE ELSE PRESS ANY NUMBER\n");
scanf("%d",&choice);
continue;
}
printf("IF YOU WANT TO CONTINUE ELSE PRESS ANY NUMBER\n");
scanf("%d",&choice);
}
printf("NO OF MEMBERS GOT THE INTERVIEW CALL LETTER:%d\n",call);
printf("NO OF MEMBERS GOT THE OFFER LETTER:%d\n",Offer);
printf("NO OF MEMBERS GOT THE REJECTION LETTER:%d\n",Reject);
getch();
}
Post a Comment