نبدو ب كود خفيف كلكم جربوه وابعتوا صورة للكود في كومنت
بنزل الكود الصح بعد عشرة دقايق في الكومنتس.
write a c program that allows the user to input any number and return its multiplication table(جدول الضرب)
بنزل الكود الصح بعد عشرة دقايق في الكومنتس.
write a c program that allows the user to input any number and return its multiplication table(جدول الضرب)
❤6
برنامج يحسب أس عدد معين تقدر تطلع بإستخدام الدالة pow في سطرين
المهم استدعي مكتبة math
⬇️⬇️
المهم استدعي مكتبة math
⬇️⬇️
قسم هندسة الحاسب الالي
#include <stdio.h> #include <stdlib.h> #include <math.h> int main (){ int i = pow (4,6) ; printf ("%d",i) ; }
غير لما بدخل قيمة الاس بالسالب حول ل double
و ٪lf
و ٪lf
قسم هندسة الحاسب الالي
برنامج يحسب أس عدد معين تقدر تطلع بإستخدام الدالة pow في سطرين المهم استدعي مكتبة math ⬇️⬇️
البرنامج بدون استدعاء مكتبة math
⬇️⬇️
⬇️⬇️
#include <stdio.h>
#include <stdlib.h>
int main (){
double f,t;
do{
printf("enter the base number: ");
scanf("%lf",&f);
printf("enter an exponet number: ");
scanf("%lf",&t);
}while(t==0);
if(f==0){
printf("answer %d",1);
}else{
double i, result=1;
if (t>0) i=t;
else i= -t;
while(i>0){
result=result*f;
i--;
}
if(t>0) printf("answer: %lf" ,result);
else printf("answer: %lf", 1/result);
}
}
#include <stdlib.h>
int main (){
double f,t;
do{
printf("enter the base number: ");
scanf("%lf",&f);
printf("enter an exponet number: ");
scanf("%lf",&t);
}while(t==0);
if(f==0){
printf("answer %d",1);
}else{
double i, result=1;
if (t>0) i=t;
else i= -t;
while(i>0){
result=result*f;
i--;
}
if(t>0) printf("answer: %lf" ,result);
else printf("answer: %lf", 1/result);
}
}
هذا البرنامج فكرته مليحة
عبارة عن ألة حاسبة ادير 4 عمليات طبعًا حطيتلك زوز متغيرات أنت بعدين تحكم في متغيراتك و دير حتى خمسة لاف متغير ⬇️⬇️
عبارة عن ألة حاسبة ادير 4 عمليات طبعًا حطيتلك زوز متغيرات أنت بعدين تحكم في متغيراتك و دير حتى خمسة لاف متغير ⬇️⬇️
#include <stdio.h>
#include <stdlib.h>
int main (){
char Calculation;
double A,B;
printf(" enter the 0peration: ");
scanf("%c",&Calculation);
printf("enter A: ");
scanf("%lf",&A);
printf("enter B: ");
scanf("%lf",&B);
switch(Calculation){
case '+':
printf("%lf + %lf = %lf ",A,B,A+B);
break;
case '-':
printf("%lf - %lf = %lf ",A,B,A-B);
break;
case '/':
printf("%lf / %lf = %lf ",A,B,A/B);
break;
case '*':
printf("%lf * %lf = %lf ",A,B,A*B);
break;
default:
printf("error404");
break;
}
}
#include <stdlib.h>
int main (){
char Calculation;
double A,B;
printf(" enter the 0peration: ");
scanf("%c",&Calculation);
printf("enter A: ");
scanf("%lf",&A);
printf("enter B: ");
scanf("%lf",&B);
switch(Calculation){
case '+':
printf("%lf + %lf = %lf ",A,B,A+B);
break;
case '-':
printf("%lf - %lf = %lf ",A,B,A-B);
break;
case '/':
printf("%lf / %lf = %lf ",A,B,A/B);
break;
case '*':
printf("%lf * %lf = %lf ",A,B,A*B);
break;
default:
printf("error404");
break;
}
}
❤4
قسم هندسة الحاسب الالي
#include <stdio.h> #include <stdlib.h> int main (){ double f,t; do{ printf("enter the base number: "); scanf("%lf",&f); printf("enter an exponet number: "); scanf("%lf",&t); }while(t==0); if(f==0){ printf("answer %d",1); …
لو بتزيد عمليات بدخل مكتبة ال math لأنه لو بتحسب اس رقم على سبيل المثال بتضطر ادير برنامج زي هذا داخل البرنامج متع الالة !
متعب الموضوع ف سهل على روحك دخل المكتبة تقدر تحسب لوغارتم تقدر تحسب اسس وهاكذا
متعب الموضوع ف سهل على روحك دخل المكتبة تقدر تحسب لوغارتم تقدر تحسب اسس وهاكذا
🔥4
Forwarded from 𝙲𝙾𝙻𝙻𝙴𝙶𝙴 𝙾𝙵 𝙴𝙽𝙶𝙸𝙽𝙴𝙴𝚁𝙸𝙽𝙶 𝟸𝟶𝟶𝟹👷🏻♂️🔥
روت أم المؤمنين عائشة رضي الله عنها عن المصطفى عليه الصلاة والسلام أنه قال: (ركعتا الفجرِ خيرٌ من الدنيا وما فيها) [سنن الترمذي]
❤5
Quiz Group 3 :
Write a C program to check a number divisible by 4 and 6 or no?
“User entering 15 numbers ”
#EC251L
Write a C program to check a number divisible by 4 and 6 or no?
“User entering 15 numbers ”
#EC251L
🤯3
Quiz Group 4 :
Write a c program where the user enters 50 numbers and count the even numbers and the odd numbers
#EC251L
⬇️⬇️
Write a c program where the user enters 50 numbers and count the even numbers and the odd numbers
#EC251L
⬇️⬇️
❤2
هذا برنامج ل مصفوفة يحسبلك حجم اي مصفوفة
يحسب المجموع و المتوسط ⬇️
يحسب المجموع و المتوسط ⬇️