السلام عليكم ورحمة الله
اهلاوسهلابكم في قناتنا
#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;
}