عرض مشاركة واحدة
  #3  
قديم 28-04-2012, 09:35 PM
الصورة الرمزية thequeenlove
thequeenlove thequeenlove غير متواجد حالياً
طالبة حاسبات ومعلومات بنها
 
تاريخ التسجيل: Jan 2009
العمر: 31
المشاركات: 1,621
معدل تقييم المستوى: 18
thequeenlove is on a distinguished road
افتراضي

كود:
#include <iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    for (int i=1;i<=n;i++)
    {
        if (i%2 != 0)
        {
        for (int j=1;j<=i;j++)
        {
        cout<<"*";
        }
        }
        cout<<endl;
    }
    
    system ("pause");
    return 0;
}
__________________

if you want to be , you will be so do your best to be the best