Right angle triangle pattern
#include <stdio.h> int main () { int num, row , columb; printf("Enter the number of row : "); scanf("%d", &num); for (row = 1 ; row <= num; row++){ for (columb =1 ; columb <= row; columb++){ printf("*"); } printf("\n"); } return 0 ;}
Comments
Post a Comment