Posts by João • 19 points
2 posts
-
-1
votes1
answer35
viewsQ: How do I print an array in the form of rows and columns?
#include<stdio.h> #include<stdlib.h> int main(){ int m[3][2]; for(int i=0; i<3; i++){ for(int j=0; j<2; j++){ printf("Digite o elemento na linha e coluna [%d],[%d]: ", i, j);…
-
0
votes1
answer107
viewsQ: How to concatenate two strings into C without using <string library. h>?
#include<stdio.h> #include<stdlib.h> int main(){ char vet1[20] = "Bom "; char vet2[20] = "dia"; for(int i=0; vet1[i]!='\0'; i++){ for(int j=0; vet2[j]!='\0'; j++){ vet1[i]=vet2[j];…