-
C program to find the maximum of 3 numbers using function?
include <stdio.h>#include <stdlib.h>int main(int argc, char *argv[]){int n, numList[3];int returnval = 0;if(argc == 4){for(n = 0; n < 3; n++){numList[n] = atoi(argv[n +...
-
To find the positive number using if in c?
if (n>0) printf ("%d is positive\n", n);
-
What 3 numbers are between 21 seconds and 22 seconds?
21.03, 21.05, 21.07 is the answer
-
A c program to find maximum number in a 3 by 3 matrix?
int matrix[][]; // the matrix to find the max in int max = matrix[0][0]; int r,c; for(r = 0; r < 3; ++r) {
for(c = 0; c < 3; ++c) { if(matrix[r][c] > max) { max = matrix[r][c]; } }
} //...
-
What are the integers between -3 and 3?
In ascending order, the integers between -3 and 3 are: -2, -1, 0, 1, 2