#include <stdio.h>
#define SIZE 15
void main(){
int i, h, ar[SIZE][SIZE], row, col, p1, p2;
printf("Enter how many rows: ");
scanf("%d", &row);
printf("Enter how many columns: ");
scanf("%d", &col);
printf("Enter the numbers you want to put in the array: ");
for (i=0;i<col;i++){
for (h=0;h<row;h++){
scanf("%d", &ar[h][i]);
}}
for (p1=0;p1<col;p1++){
printf("column %d: ", p1+1);
for (p2=0;p2<row;p2++){
printf(" %d", ar[p2][p1]);
}
printf("\n");
}
}
About this blog
These codes here are just based on my own knowledge learned from my IT subjects. I know there are more ways that this draft codes can be enhance, so..
Please feel free to comment & suggest.. Suggest Codes which makes my existing codes simpler.. Thanks!
Archives
Categories
Making Life Simple w/ Programming
Links
- w3schools.com
- Java & Textpad Setup Guide 2
- Java & Textpad Setup Guide
- ASCII Alphabet Characters
- File Handling - Forum
- File Handling - Tutorial 0.1
- File Handling - Tutorial 0.2
- Bin-Dec Conversion - Forum
- Use of getch(), getche(), & getchar()
- The C Book
- SEO
- Common C programming errors
- Tutorial - Array Functions
- August Council Tutorial - c
- C language tutorials
- cprogramminglanuage.net
0 comments