سكون عآصف
03-26-2010, 09:07 PM
>>> نآسخه لكم ورقة الهوم وورك نفسها
DATE OF SUBMISSION: 28-03-2010(SUNDAY, 9AM)
FULL MARKS: 50
(Answer all the questions, each question carries equal marks)
Q1. Write a program in C to compute the value of the expression X = 10+5/2*3 and print the
output as integer type as well as floating point type.
Q2. Write a program in C to print the ASCII equivalent of the decimal numbers 97, 98 and 99.
Q3. Write a program in C to find the biggest of three different integers.
Q4. Write a program in C to find the roots of the quadratic equation file:///C:/Users/Vaio/AppData/Local/Temp/msohtmlclip1/01/clip_image002.gif
where file:///C:/Users/Vaio/AppData/Local/Temp/msohtmlclip1/01/clip_image004.gif are numeric constants.
Q5. Write a program in C to test whether the accepted year is a leap year or not.
Q6. Write a program in C to test whether the accepted integer is odd or even.
Q7. Write a program in C to find the sum of the digits of the integer 385.
Q8. Write a program in C to find the factorial of 5.
Q9. Write a program in C to compute the sum of integers 1, 2, 3, … , n.
Q10. Write the outputs of the following two program segments:
main ()
{
int i , j ;
i = 5 ;
j =++i + 5 ;
printf(“Value of i is %d and j is %d\n”, i , j);
}
ــــــــــــــــــــــــــــــــــــــــــــــــ
main ()
{
int i , j ;
i = 5 ;
j = 5 + i++ ;
printf(“Value of i is %d and j is %d\n”, i , j);
}
>>> عآكس كل الأسهم والاقوآس :m: ماعليكم منه
DATE OF SUBMISSION: 28-03-2010(SUNDAY, 9AM)
FULL MARKS: 50
(Answer all the questions, each question carries equal marks)
Q1. Write a program in C to compute the value of the expression X = 10+5/2*3 and print the
output as integer type as well as floating point type.
Q2. Write a program in C to print the ASCII equivalent of the decimal numbers 97, 98 and 99.
Q3. Write a program in C to find the biggest of three different integers.
Q4. Write a program in C to find the roots of the quadratic equation file:///C:/Users/Vaio/AppData/Local/Temp/msohtmlclip1/01/clip_image002.gif
where file:///C:/Users/Vaio/AppData/Local/Temp/msohtmlclip1/01/clip_image004.gif are numeric constants.
Q5. Write a program in C to test whether the accepted year is a leap year or not.
Q6. Write a program in C to test whether the accepted integer is odd or even.
Q7. Write a program in C to find the sum of the digits of the integer 385.
Q8. Write a program in C to find the factorial of 5.
Q9. Write a program in C to compute the sum of integers 1, 2, 3, … , n.
Q10. Write the outputs of the following two program segments:
main ()
{
int i , j ;
i = 5 ;
j =++i + 5 ;
printf(“Value of i is %d and j is %d\n”, i , j);
}
ــــــــــــــــــــــــــــــــــــــــــــــــ
main ()
{
int i , j ;
i = 5 ;
j = 5 + i++ ;
printf(“Value of i is %d and j is %d\n”, i , j);
}
>>> عآكس كل الأسهم والاقوآس :m: ماعليكم منه