c++ segitiga angka

#include<iostream.h>
#include<conio.h>
void main()
{
    int a,
        b,
        c;
    a=10;

    for (b=1;b<=a;b++)
    {
        for (c=1;c<=b;c++)
        {cout<<c;}
        cout << endl;
    }
}

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar