write C Code this
Wed Nov 16 2022 16:22:14 GMT+0000 (Coordinated Universal Time)
Saved by
@Mohamedshariif
// Online C compiler to run C program online
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
print like this in the output;
XX
XXXX
XXXXXX
XXXXXXXX
XXXXXXXXXX
int main() {
int line,col;
for(int line=1;line<=5;line++)
{
for(int col=1;col<=line*2;col++)
{
printf("X");
}
printf("\n");
}
return 0;
}
content_copyCOPY
Comments