#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct{
int dd, mm, yy;
}DATE;
typedef struct{
int idno;
Type: Posts; User: markg
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct{
int dd, mm, yy;
}DATE;
typedef struct{
int idno;
bord2=0;
for(l=0;l<0;l++){ /*changed it to 1*/
for(k=0;k<n;k++){
bord2=bord2+matrix[k][l];
Thanks.
#include <stdio.h>
void main()
{
int matrix[100][100], n, k, l, bord, bord1, bord2, bord3, bord4;
do{
printf("Enter order of matrix between 1 and 100 \n");
scanf("%d",&n);...
*** *** ***
** ** **
* * *
-sigh- My head's aching, but I can't seem to figure out how to generate that figure using the for loop and putchar('*').
Any help would be greatly appreciated.
CWR - thanks ... and not really, but i copied it down and i'll analyze it.
rockytriton - what book would you suggest? for beginners and with lots of sample programs and...
#include <stdio.h>
void main()
{
int a,b;
for(a=0;a<6;++a){
for(b=0;b<=a;++b)
putchar('*');
putchar('\n');