#include <iostream>//تدوير مصفوفة
using namespace std;
int main()
{
int arr[10]={1,2,3,4,5,6,7,8,9,10};
int temp[10];
int x;
cout<<"Enter Rotation Factor."<<endl;
cin>>x;
for(int i=9;i>=0;i--)
{
if(i+x>=10)
{
temp[i+x-10]=arr[i];
}
else
{
temp[i+x]=arr[i];
}
}
for(int i=0;i<10;i++){
cout<<temp[i]<<" ";
}
return 0;
}
using namespace std;
int main()
{
int arr[10]={1,2,3,4,5,6,7,8,9,10};
int temp[10];
int x;
cout<<"Enter Rotation Factor."<<endl;
cin>>x;
for(int i=9;i>=0;i--)
{
if(i+x>=10)
{
temp[i+x-10]=arr[i];
}
else
{
temp[i+x]=arr[i];
}
}
for(int i=0;i<10;i++){
cout<<temp[i]<<" ";
}
return 0;
}
Forwarded from 📽📽تحفيز (امبراطდـور〄الگতـبرياء:)
This media is not supported in your browser
VIEW IN TELEGRAM
#للمبرمجين
تجربة فعلية كيف يستطيع " الهكر " الإحتيال للحصول على بياناتك عبر مفهوم الهندسة الاجتماعية ودون الحاجة الى أكواد ؟
فـ🎥ـديوهات تحفـيزيه🎞📡
📡➪ @videot12
تجربة فعلية كيف يستطيع " الهكر " الإحتيال للحصول على بياناتك عبر مفهوم الهندسة الاجتماعية ودون الحاجة الى أكواد ؟
فـ🎥ـديوهات تحفـيزيه🎞📡
📡➪ @videot12
الدوائر المنطقية التوافقية.pdf
361.3 KB
للإطلاع
منقول من قناه التقنيه
منقول من قناه التقنيه
Forwarded from مقاطع مريحه15ثHD§ (امبراطდـور〄الگতـبرياء:)
Forwarded from خاص بماده البـرمجه
🔤السلام عليكم
🌹طيب الله اوقاتكم 🌺
#محاضره_ اليوم _نظري
#المقارنه بين 👇🏼
~*A_passing by value and passing vu refrence.*~`
المقارنه
🛑The first passinge By Value
1⃣ *int x;*
2⃣ *The parameter x is local variable*
3⃣ *It is duplicate of the argument*
4⃣ *It cannot change the argument.*
5⃣ *The argument passed by value many be a constant, avariable, or an cxpression.*
6⃣ *The argument is read-only.*
_____
🛑 _*Second passing By Reference*_
1⃣ *int &x;*
2⃣ *The parameter x is local reference.*
3⃣ *It is synonym for the argument*
4⃣ *It can change the argument.*
5⃣ *The argument passed by reference must be avariable.*
6⃣ *The argument is read _write.*
💻برنامج لتبديل القيمه بين متغيرين بستخدام المؤشرات
#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
int &p=a;
p++;
a++;
cout <<"p="<<p<<"\t";
p--;
a++;
cout<<"p="<<p;}
#منقول
عمل الاخ
صالح الشعيبي ❤️👍🌹
🌹طيب الله اوقاتكم 🌺
#محاضره_ اليوم _نظري
#المقارنه بين 👇🏼
~*A_passing by value and passing vu refrence.*~`
المقارنه
🛑The first passinge By Value
1⃣ *int x;*
2⃣ *The parameter x is local variable*
3⃣ *It is duplicate of the argument*
4⃣ *It cannot change the argument.*
5⃣ *The argument passed by value many be a constant, avariable, or an cxpression.*
6⃣ *The argument is read-only.*
_____
🛑 _*Second passing By Reference*_
1⃣ *int &x;*
2⃣ *The parameter x is local reference.*
3⃣ *It is synonym for the argument*
4⃣ *It can change the argument.*
5⃣ *The argument passed by reference must be avariable.*
6⃣ *The argument is read _write.*
💻برنامج لتبديل القيمه بين متغيرين بستخدام المؤشرات
#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
int &p=a;
p++;
a++;
cout <<"p="<<p<<"\t";
p--;
a++;
cout<<"p="<<p;}
#منقول
عمل الاخ
صالح الشعيبي ❤️👍🌹
✍اكتب برنامج يعمل على تنفيذ المعادله التاليه
P(n,k)=n!/n!-k!
البرنامج
#من_المحاضره_النظري
#include<iostream>
using namespace std;
float fact (int n,int k){
int f=1,f1=1;
for (int i=1;i<=n;++i)
f*=i;
for (int i=1;i<=n-k;++i)
f1*=i;
float q=float (f)/f1;
return q;
}
int main ( ) {
int x1,x2;
cin>>x1>>x2;
cout<<fact (x1,x2);
}
#منقول
صالح الشعيبي
P(n,k)=n!/n!-k!
البرنامج
#من_المحاضره_النظري
#include<iostream>
using namespace std;
float fact (int n,int k){
int f=1,f1=1;
for (int i=1;i<=n;++i)
f*=i;
for (int i=1;i<=n-k;++i)
f1*=i;
float q=float (f)/f1;
return q;
}
int main ( ) {
int x1,x2;
cin>>x1>>x2;
cout<<fact (x1,x2);
}
#منقول
صالح الشعيبي
مستـ1ــوى حاسوب
آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: //حدد المخرجات #include <iostream> #include <conio.h> #include <math.h> using namespace std; int main(){ int i; for(i=0; i<5; i++){ i*10; if(i<3) cout<<pow(2,i)<<"\t"<<pow(3,i)<<endl; else cout<<sqrt(pow(2,6))<<"\t"; } getch(); return…
تكنلوجيا معلومات المحاضرة الثالثة
Forwarded from خاص بماده البـرمجه
main.cpp.enc
840 B
تْطِبّيَقً الُمٌحُاضُرَُه الُمٌاضُيَُه الُْعمٌلُيَ لُلُاسِتْاذَ مٌحُمٌدِ مٌقًنَمٌ
أمس واحد صاحبي لقي حقيبة وبداخلها ملازم ولابتوب لطالب من كلية الحاسبات
لكن إسم الطالب مش موجود
بلغوا في مجموعاتكم
منقول من محمد نهاري مندوب التقنيه
لكن إسم الطالب مش موجود
بلغوا في مجموعاتكم
منقول من محمد نهاري مندوب التقنيه