3051 |
#include <stdio.h> int min( int x, int y ) { int m; if ( x> y ) m = x; e |
67 |
2024-07-14 |
3052 |
#include <stdio.h> int Sub(int a, int b) {return (a- b);} main() {int x, y, |
32 |
2024-07-14 |
3053 |
#include"stdio.h" main() {int j,k; static int x[4][4],y[4][4]; for(j=0;j<4;j++) fo |
74 |
2024-07-11 |
3054 |
#include <stdio.h> f(int b[],int n) {int i,r; r=1; for (i=0;i<=n;i++) r=r*b |
83 |
2024-07-11 |
3055 |
#include <stdio.h> main() {int a[2][3]={{1,2,3},{4,5,6}}; int b[3][2],i,j; for(i=0;i<=1 |
45 |
2024-07-11 |
3056 |
#include <stdio.h> main() {float fun(float x[]); float ave,a[3]={4.5,2,4}; ave=fun(a); |
34 |
2024-07-11 |
3057 |
#include “stdio.h” func(int b[ ]) { int j; for(j=0;j<4;j++) b[j]=j; } |
76 |
2024-07-11 |
3058 |
#include <stdio.h> main( ) { int i, f[10]; f[0]=f[1]=1; for(i=2;i<10;i++) f[i]=f[i-2] |
42 |
2024-07-11 |
3059 |
#include <stdio.h> main() { char diamond[][5]={{‘_’,’_’,’*’},{‘_‘,’*’,’_’, |
93 |
2024-07-11 |
3060 |
#include <stdio.h> main( ) { int n[3][3], i, j; for(i=0;i<3;i++ ) {for(j=0;j<3;j+ |
27 |
2024-07-11 |
3061 |
#include <stdio.h> main() { int i; int x[3][3]={1,2,3,4,5,6,7,8,9}; for (i=1; i<3; i+ |
69 |
2024-07-11 |
3062 |
#include <stdio.h> int m[3][3]={{1},{2},{3}}; int n[3][3]={1,2 ,3}; main( ) { printf( |
50 |
2024-07-11 |
3063 |
#include <stdio.h> main( ) { int i,k,a[10],p[3]; k=5; for(i=0;i<10;i++) a[i]=i; f |
93 |
2024-07-11 |
3064 |
#include <stdio.h> main() { int i,a[6]; for (i=0; i<6; i++) a[i]=i; for (i=5; i>=0 |
57 |
2024-07-11 |
3065 |
#include <stdio.h> main() { int i, a[10]; for(i=9;i>=0;i--) a[i]=10-i; print |
32 |
2024-07-11 |
3066 |
#include <stdio.h> #define N 4 main( ) { int i,j; for(i=1;i<=N;i++) { for |
33 |
2024-07-11 |
3067 |
#include <stdio.h> main( ) { int x, y; for(x=30, y=0; x>=10, y<10; x--, y++) x/=2, |
21 |
2024-07-11 |
3068 |
#include <stdio.h> #define N 4 main() { int i; int x1=1,x2=2; printf("\n" |
75 |
2024-07-11 |
3069 |
#include <stdio.h> main() { int i,sum=0; i=1; do{ sum=sum+i; i++; }while(i<=10); prin |
74 |
2024-07-11 |
3070 |
#include <stdio.h> main() { int y=9; for(;y>0;y--) if(y%3==0) { printf(%d”, |
92 |
2024-07-11 |
3071 |
#include <stdio.h> main()_ { char grade=’C’; switch(grade) { case ‘A’: printf(“9 |
88 |
2024-07-11 |
3072 |
#include <stdio.h> main( ) { int a=1,b=0; scanf(“%d”,&a); switch(a) { case |
34 |
2024-07-11 |
3073 |
#include<stdio.h> main( ) { char ch; ch=getchar( ); switch(ch) { case ‘A |
59 |
2024-07-11 |
3074 |
#include <stdio.h> main() { int x, y =0; for(x=1;x<=10;x++) { if(y>=10) |
92 |
2024-07-11 |
3075 |
#include <stdio.h> main() { char c; while((c=getchar())!=’$’) { if(‘A’<=c&&c |
21 |
2024-07-11 |