hi, i am student of bca i want to make a program in c whose output will as ******* * * * * * * * * ******* please tell me what will be the logic.help me
Code: printf("*******\n"); printf("* *\n"); printf("* *\n"); printf("* *\n"); printf("* *\n"); printf("*******\n");
Code: #include<stdio.h> #include<conio.h> void main() { int m,n; for(m=1;m<8;m++) { printf("* "); } printf("%c",10); for(m=1;m<5;,m++) { for(n=1;n>3;n++) { printf("* "); } printf("\n"); } for(m=1;m<8;m++) { printf("* "); } }
now i am studying about the strings but now i am unable to understand the string functions as strcpy,strcat,strcmp,strlen so please give me full detailment of them with the suitable examples
hi good evening friends this question i am posting for all the novices . write a program that will read a set of the real numbers and find the maximum and the minimum number entered.
Code: outer_loop(0 < max_row) { inner_loop(0 < max_col) { if(outer_loop iterator is 0 or max_row - 1) // output a single '*' else if(inner_loop iterator is 0 or max_col - 1) // output a single '*' else // output a single space } // output a single newline } you could probably condense the else/if line with the if line using an || test. Code: if((outer_loop iterator is 0 or max_row - 1) || (inner_loop iterator is 0 or max_col - 1)) // output a single '*' it's been a while since I've coded anything, but maybe something like that. HTH