// find the maximum and minimum values of the array, the array into
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
int main () {
int ARR [2] [. 3];
int arr2 is [. 3] [2];
int max, min;
int I, J;
int H;
int L;
for (I = 0; I <2; I ++) {
for (J = 0; J <. 3; J ++) {
the printf ( "ARR [% D] [% D] = ", I, J);
Scanf ("% D ", & ARR [I] [J]);
}
}
the printf (" output two-dimensional array: \ n-");
for (I = 0; I <2; I ++) {
for (J = 0; J <. 3; J ++) {
the printf ( "% D", ARR [I] [J]);
}
the putchar ( '\ n-');
}
max ARR = [0] [0];
H = 0;
L = 0;
for (I = 0; I <2;i++){
for (j = 0; j < 3; j++){
IF (max <ARR [I] [J]) {
max = ARR [I] [J];
H I =;
L = J;
}
}
}
the printf ( "maximum number of the original number of the array: \ n");
the printf ( "max =% D \ n-", max);
min = ARR [0] [0];
for (I = 0; I <2; I ++) {
for (J = 0; J <. 3; J ++) {
IF (min> ARR [I] [J]) {
min ARR = [I] [J];
}
}
}
the printf ( "origin smallest array is: \ n-");
the printf ( "% D min = \ n-", min);
for (I = 0; I <2; I ++) {
for (J = 0; J <. 3; J ++) {
arr2 is [J] [I] = ARR [I] [J];
}
}
printf ( "output two-dimensional array: \ n-");
for (I = 0; I <. 3; I ++) {
for (J = 0; J <2; J ++) {
printf ( "%d\t",arr2[i][j]);
}
putchar('\n');
}
system("pause");
return 0;
}
the include # * <stdio.h>
int main () {// definition of a variable increment decrement
int. 6 = A;
int X1, X2, X3, X4;
X1 = A ++;
X2 = A ++;
X3 = - -a;
X4 = A--;
the printf ( "% D \ D n-% \% n-D \ D n-% \ n-", X1, X2, X3, X4);
System ( "PAUSE");
return 0;
} * /
int main(){
char *Char = "i love chine";
puts("i love chine");
puts(Char);
Char = "i love chine";
puts(Char);
system("pause");
return 0;
}*/
/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
char A;
char B;
the puts ( "Please enter a letter");
Scanf ( "% C", & A);
B = A - 32;
the printf ( "B =% C \ n-", B) ; capital letters //
printf ( "% d \ n" , b); // position in ASCII
System ( "PAUSE");
return 0;
} * /
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int NUM;
int yue = 2000;
int shang;
int Ti;
printf ( "Please enter the number of your product:");
scanf ( "% d", & shang);
Ti = shang * 15;
NUM = Ti + 2000;
the printf ( "% D NUM = \ n-", NUM);
System ( "PAUSE");
return 0;
}
#include<stdio.h>
#include<stdlib.h>
int main(){
int x=0,i;
int y;
printf("%d\n", x);
scanf("%d",&x);
if(x < 1){
i = 1;
}
else if (x >= 1 && x < 10){
i = 2;
}
else
i = 3;
switch (i){
case 1:
y = x;
break;
case 2:
y = 2 * x - 1;
break;
case 3:
y = 2 * x - 11;
break;
}
printf("y=%d\n", y);
system("pause");
return 0;
}
int main(){
int x, y, z;
int max;
printf("input x,y,z\n");
scanf("%d %d %d", &x, &y, &z);
if (x < y){
max = y;
}
else {
max = x;
}
if (max>z){
printf("%d\n", max);
}
else
max = z;
printf("%d\n", max);
system("pause");
return 0;
}
@ 0-100 output number can not be divisible by three
#include <stdio.h>
#include <stdlib.h>
int main () {
int I;
for (I = 0; I <= 100; I ++) {
! IF (I = 0. 3%) {
the printf ( "% D I = \ n-", I);
}
}
System ( "PAUSE");
return 0;
}
#include <stdio.h>
# include <stdlib.h> // print capital letters for loop corresponding ASCII code
int main () {
int I;
for (I = 0; I <26 is; I = I + 2) {
the printf ( "% c corresponding to the letter the ASCII code for the% d │ ", i + 65 , i + 65);
}
System ( "PAUSE");
return 0;
}