This question is locked. New answers and comments are not allowed.
#include <stdio.h>
#include <conio.h>
main( )
{
int i, j, k = 1;
clrscr( );
for( i = 1; k <= 15; ++i )
{
for( j = 1; j <= i; ++j )
printf( "%d ", k++ );
printf( "\n\n" );
}
getch( );
return 0;
}
CAN PLEASE someone convert those codes into c++ codes .
#include <conio.h>
main( )
{
int i, j, k = 1;
clrscr( );
for( i = 1; k <= 15; ++i )
{
for( j = 1; j <= i; ++j )
printf( "%d ", k++ );
printf( "\n\n" );
}
getch( );
return 0;
}
CAN PLEASE someone convert those codes into c++ codes .