Commit 82240b0b by ilahma

Upload New File

parent 80b94094
Showing with 32 additions and 0 deletions
#include <stdio.h>
#include <string.h>
void readdata(char name[6][20],char password[6][20], char status[6][20], char balance[6][20]);
int main () {
char names[6][20];
char passwords[6][20];
char account_statuses[6][20];
char account_balances[6][20];
readdata(names,passwords,account_statuses, account_balances);
return 0;
}
void readdata(char name[6][20],char password[6][20], char status[6][20], char balance[6][20]) {
int i;
for(i=0; i<6;i++) {
scanf("%s%s%s%s", name[i],password[i],status[i],balance[i]);
printf("%s\t", name[i]);
printf("%s\t", password[i]);
printf("%s\t", status[i]);
printf("%s\n", balance[i]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment