قسم هندسة الحاسب الالي
Open in Telegram
1 306
Subscribers
No data24 hours
+77 days
+1830 days
Posts Archive
Write a program in C to count the total number of duplicate elements in an array.
هوا مليح جربوه
كود يحسبلك كم في رقم مكرر في المصفوفة
#include <stdio.h>
#include <stdlib.h>
int main(){
int R;
printf("the size of array: ");
scanf("%d",&R);
int A[R],B[R],sum[R];
printf(" enter the alemant \n");
for(int i=0; i<R; i++){
printf("enter the element the first array %d: \t",i+1);
scanf("%d",&A[i]);
}
printf("enter the element \n");
for(int i=0; i<R; i++){
printf("\nenter the element the second array %d: \t",i+1);
scanf("%d",&B[i]);}
printf("the sum = ");
for(int i=0; 1<R; i++){
sum[i]=A[i]+B[i];
printf("%d\t ",sum[i]);
}
}
#include <stdio.h>
void main ()
{
int i , array [20] , sum = 0 ;
float avg = 0;
for (i=0 ; i<15 ; i++)
{
printf ("Enter a number %d: ",i+1);
scanf ("%d",&array[i]);
sum = sum + array[i] ;
}
avg = sum / 15.0;
printf ("\nSum of the numbers =%d \n\nand their average =%.2f\n",sum,avg);
}
أكتبلي برنامج يحسبلي مجموع ومتوسط عناصر مصفوفة وحدد أنت الحجم متع المصفوفة .
سؤال بسيط لكن عجبني.
هل الكود غلط او صح ولو غلط قولوا وين الغلط؟
Suppose we want to display the consecutive digits 0,1,2,…,9
with one digit on each line. This can be accomplished with the
following program
void main()
{
int R=0;
while ( R <= 9)
printf (“%d \n, ++R);
}
مجموعة1
شوية ملاحظات ع البوينترز+ برنامج لطباعة:
عنوان الرقم الأول + عنوان الرقم الثاني = مجموعهم
Repost from قناة هندسة الحاسب
#EC381 / #EC310
ملفات تحتوي على صور امتحانات/كويزات/هوموركات
بالتوفيق جميعاً
Repost from 𝙲𝙾𝙻𝙻𝙴𝙶𝙴 𝙾𝙵 𝙴𝙽𝙶𝙸𝙽𝙴𝙴𝚁𝙸𝙽𝙶 𝟸𝟶𝟶𝟹👷🏻♂️🔥
روت أم المؤمنين عائشة رضي الله عنها عن المصطفى عليه الصلاة والسلام أنه قال: (ركعتا الفجرِ خيرٌ من الدنيا وما فيها) [سنن الترمذي]
Available now! Telegram Research 2025 — the year's key insights 
