محمد زين الدين نشر 8 أغسطس 2020 أرسل تقرير مشاركة نشر 8 أغسطس 2020 برنامج لطباعة الشكل الاتي باستخدام 1 اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
0 Mohammed Saber6 نشر 8 أغسطس 2020 أرسل تقرير مشاركة نشر 8 أغسطس 2020 مرحباً محمد إليك الكود بلغة جافاسكربت for(let i =0; i <5; i++ ) { for(let j=0; j < 4; j++) { if(i === 2 ) { document.write('*') } else { if(j === 1 || j === 2) { document.write(' '); } else { document.write('*') } } } document.write('<br />'); } هذا هو الكود 1 اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
0 محمد زين الدين نشر 8 أغسطس 2020 الكاتب أرسل تقرير مشاركة نشر 8 أغسطس 2020 بتاريخ الآن قال Mohammed Saber: مرحباً محمد إليك الكود بلغة جافاسكربت for(let i =0; i <5; i++ ) { for(let j=0; j < 4; j++) { if(i === 2 ) { document.write('*') } else { if(j === 1 || j === 2) { document.write(' '); } else { document.write('*') } } } document.write('<br />'); } هذا هو الكود اشكرك صديقي لكن اوريده على ++ c اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
0 Mohammed Saber6 نشر 8 أغسطس 2020 أرسل تقرير مشاركة نشر 8 أغسطس 2020 بتاريخ 11 دقائق مضت قال محمد زين الدين: اشكرك صديقي لكن اوريده على ++ c /****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> using namespace std; void starPattern() { for (int i = 0; i < 5; i++) { for (int j = 0; j < 4; j++) { if(i == 2 ) { cout << "*"; } else { if(j == 1 || j == 2) { cout << " "; } else { cout << "*"; } } } // Ending line after each row cout << endl; } } int main() { starPattern(); return 0; } 1 اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
0 محمد زين الدين نشر 8 أغسطس 2020 الكاتب أرسل تقرير مشاركة نشر 8 أغسطس 2020 بتاريخ الآن قال Mohammed Saber: /****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> using namespace std; void starPattern() { for (int i = 0; i < 5; i++) { for (int j = 0; j < 4; j++) { if(i == 2 ) { cout << "*"; } else { if(j == 1 || j == 2) { cout << " "; } else { cout << "*"; } } } // Ending line after each row cout << endl; } } int main() { starPattern(); return 0; } شكرا جزيلا غلبتك معي اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
السؤال
محمد زين الدين
برنامج لطباعة الشكل الاتي باستخدام
رابط هذا التعليق
شارك على الشبكات الإجتماعية
4 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.