greeshma


{ City } kottayam
< Country > india
* Profession *
User No # 98274
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 27
Users Marked my Answers as Wrong # 21
Questions / { greeshma }
Questions Answers Category Views Company eMail




Answers / { greeshma }

Question { Darbari Lal DAV Model School, 73606 }

what is the difference between entry control and exit
control statement?


Answer

entry control loop
the first step in such loop is evaluating the condition.. and it executes if it is true.. and will not execute if it is false


exit control loop
here the execution is the first step and evaluation is the second step..

Is This Answer Correct ?    26 Yes 14 No

Question { 6377 }

Write a c-programe that input one number of four digits and find digits sum?


Answer

{
int sum,digit1,digit2,digit3,digit4;
printf("enter the four digit number\n");
scanf("%d",digit1,digit2,digit3,digit4);
digit1=(digit1%1000)/10;
digit2=(digit2%1000)/10;
digit3=(digit3%1000)/10;
digit4=(digit4%1000)/10;
sum=digit1+digit2+digit3+digit4;
printf("the sum of digits is %d",sum);
return(0);
}

Is This Answer Correct ?    1 Yes 7 No