السلام عليكم ورحمة الله
اهلاوسهلابكم في قناتنا
#include<iostream>
using namespace std ;
main ()
{
int a, h, k,j;
for (a =1 ;a <10 ;a++)
{
for (h =a ;h <10 ;h++)
cout <<"*";
cout <<"+";
cout <<endl ;}
for (j =1 ;j <15 ;j++)
{
for (k =j;k<10 ;k++)
cout <<"♥";
cout <<endl ;}
}
/*عمل تشكيلات روعه بنجوم * وقلب ♥جربها
*/
using namespace std ;
main ()
{
int a, h, k,j;
for (a =1 ;a <10 ;a++)
{
for (h =a ;h <10 ;h++)
cout <<"*";
cout <<"+";
cout <<endl ;}
for (j =1 ;j <15 ;j++)
{
for (k =j;k<10 ;k++)
cout <<"♥";
cout <<endl ;}
}
/*عمل تشكيلات روعه بنجوم * وقلب ♥جربها
*/
خوارزمية تقوم بتشكيله مثلث بـ*
#include<iostream.h>
int main()
{
int i,n_row,j,f;
cout<<" enter the number of rows"<<endl;
cin>>n_row;
for(i=1;i<=n_row;++i)
{
for(j=1;j<=i;++j)
cout<<"*";
cout<<endl;}
return 0;
}
int main()
{
int i,n_row,j,f;
cout<<" enter the number of rows"<<endl;
cin>>n_row;
for(i=1;i<=n_row;++i)
{
for(j=1;j<=i;++j)
cout<<"*";
cout<<endl;}
return 0;
}
#include <iostream>
using namespace std;
int main(){
cout<<"\tبرنامج لطباعة اكبر عدد بين 5 ارقام \n";
int x[5]={50,70,80,100,40};
int a=0;
for(int i=0;i<=5;i++)
{
if(a<x[i])
a=x[i];
}
cout<<a<<endl;
return 0;
}
using namespace std;
int main(){
cout<<"\tبرنامج لطباعة اكبر عدد بين 5 ارقام \n";
int x[5]={50,70,80,100,40};
int a=0;
for(int i=0;i<=5;i++)
{
if(a<x[i])
a=x[i];
}
cout<<a<<endl;
return 0;
}
اكتب برنامج يسمح للمستخدم بادخال رقم الطالب ليقوم بطباعه اسمه والقسم والمستوى بحيث سيتم تخزين قيم لثلاثة طلاب فقط وفي حال ادخل المستخدم رقم طالب غير موجود يعطيه رساله ليس موجود
#include <iostream>
using namespace std;
int main(){
int n;
cout <<"**________ادخل رقم الطالب _**\n";
cin>>n;
if(n==123){
cout<<"your name is yahya. \n your department is :information system. \n your level is first";
}
else if(n==124){
cout<<"your name is harth. \n your department is :information system. \n your level is second";
}
else if(n==112){
cout<<"your name is jeehad. \n your department is :information system. \n your level is third.";
}
else {
cout<<"sorry this student not here.";
}
return 0;
}
using namespace std;
int main(){
int n;
cout <<"**________ادخل رقم الطالب _**\n";
cin>>n;
if(n==123){
cout<<"your name is yahya. \n your department is :information system. \n your level is first";
}
else if(n==124){
cout<<"your name is harth. \n your department is :information system. \n your level is second";
}
else if(n==112){
cout<<"your name is jeehad. \n your department is :information system. \n your level is third.";
}
else {
cout<<"sorry this student not here.";
}
return 0;
}