224 questions
int main(void){ int a[2]; double b[2]; printf (first person's age, height: \n); scanf(%d%lf, &a[0], &b[0]); printf (Second person's age, height: \n); scanf(%d%lf, &a[1], &b[1]); swap(i...
I understand that median is easy to get in an array of the same size.For example, A = [1,2,3,4,5,6,7,8,9] and if you want to break 3 each to get the median.median = np.median(A.reshape(3,3), axis=1)pr...
The output result of the puzzle is [[1,2,3,4], [5,6,7,8],[9,10,11,12],[13,14,15,16]]I want to use a double loop to make it come out vertically (column 4) but I can't find an answer even if I think abo...
Development tools: Android Studio, Cafe 24 Server (DB), php, MySqlCreating bulletin board.I even expressed the title of the posts currently stored in the DB as a list view.Now, if you click on the lis...
If you access the url address, you'll see words and word counts. I want to read this from Python and make Word CloudEven if you search the Internet, there is a way to create a word cloud by opening a ...
Hello, I'm a beginner in C language. const char *s1[3][2]={{A, Apple}, {B, Banana}, {C, Cake}}; printf(%d, s1[0][0]); return 0;In a two-dimensional array like this, you want to output a specific value...
#include <stdio.h>int main(void) { int aList[5] = {40, 20, 30, 40, 50}; int nMax = aList[0]; for(int i=0; aList[i] != '\n'; i++) { if(nMax < aList[i]) nMax = aList[i]; } printf(MAX: %d\n, nM...
#include <stdio.h>int main(void) { int aList[5]; int i = 0, nMin = 0, nMax = 0; printf(Please input five numbers: ); do { scanf(%d, &aList[i]); if(i==0) nMin = aList[0]; nMax = aList[0]; ...
#include <stdio.h>int main() { char* astrList[3] = {Hello, World, String}; char* *ppstrList = astrList; char** *pppstrList = &ppstrList; puts(*pppstrList[0]); puts(pppstrList[2][0]); return ...
#include <stdio.h>#include <string.h>#include <stdlib.h>int main(){ char *pszData; char first[20], second[20]; gets_s(first, sizeof(first)); pszData = (char*)malloc(sizeof(first)); s...
« | - 20 - | » |
© 2024 OneMinuteCode. All rights reserved.