اسئلة برمجة1 عال111 عملي


Computer Programming I
Exercise Pack #1: Sequence, Selection

 

  1. Write an application that displays the numbers 1 to 4 on the same line, with each pair of adjacent numbers separated by one space. Write the program using one output and advance to the next line.

 

  1. Write an application that inputs three integers from the user and displays the sum, average, product smallest and largest of the numbers in an information message dialog.

 

  1. Write an application that reads five integers and determines and prints the largest and the smallest integers in the group and also if these are odd or even. Use for that purpose the modulus operator.

 

  1. Write an application that inputs one number consisting of five digits separates the number into its individual digits and prints the digits separated from one another by three spaces each (you need to use both division and modulus operations to break down the number).

 

  1. Write a program that inputs five numbers and determines and prints the number of negative numbers input, the number of positive numbers input and the number of zeros input.

 

 


المرفقات:
هل كان المحتوى مفيد؟

التعليقات

لاضافة سؤال أو تعليق على المشاركة يتوجب عليك تسجيل الدخول
تسجيل الدخول

محتاج مساعدة؟ تواصل مع مدرس اونلاين الان!

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...