2981 |
#include “stdio.h” func(int b[ ]) { int j; for(j=0;j<4;j++) b[j]=j; } |
76 |
2024-07-11 |
2982 |
#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 |
2983 |
#include <stdio.h> main() { char diamond[][5]={{‘_’,’_’,’*’},{‘_‘,’*’,’_’, |
93 |
2024-07-11 |
2984 |
#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 |
2985 |
#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 |
2986 |
#include <stdio.h> int m[3][3]={{1},{2},{3}}; int n[3][3]={1,2 ,3}; main( ) { printf( |
50 |
2024-07-11 |
2987 |
#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 |
2988 |
#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 |
2989 |
#include <stdio.h> main() { int i, a[10]; for(i=9;i>=0;i--) a[i]=10-i; print |
32 |
2024-07-11 |
2990 |
#include <stdio.h> #define N 4 main( ) { int i,j; for(i=1;i<=N;i++) { for |
33 |
2024-07-11 |
2991 |
#include <stdio.h> main( ) { int x, y; for(x=30, y=0; x>=10, y<10; x--, y++) x/=2, |
21 |
2024-07-11 |
2992 |
#include <stdio.h> #define N 4 main() { int i; int x1=1,x2=2; printf("\n" |
75 |
2024-07-11 |
2993 |
#include <stdio.h> main() { int i,sum=0; i=1; do{ sum=sum+i; i++; }while(i<=10); prin |
74 |
2024-07-11 |
2994 |
#include <stdio.h> main() { int y=9; for(;y>0;y--) if(y%3==0) { printf(%d”, |
92 |
2024-07-11 |
2995 |
#include <stdio.h> main()_ { char grade=’C’; switch(grade) { case ‘A’: printf(“9 |
88 |
2024-07-11 |
2996 |
#include <stdio.h> main( ) { int a=1,b=0; scanf(“%d”,&a); switch(a) { case |
34 |
2024-07-11 |
2997 |
#include<stdio.h> main( ) { char ch; ch=getchar( ); switch(ch) { case ‘A |
59 |
2024-07-11 |
2998 |
#include <stdio.h> main() { int x, y =0; for(x=1;x<=10;x++) { if(y>=10) |
92 |
2024-07-11 |
2999 |
#include <stdio.h> main() { char c; while((c=getchar())!=’$’) { if(‘A’<=c&&c |
21 |
2024-07-11 |
3000 |
#include "stdio.h" main() {char c; c=getchar(); while(c!='?') {pu |
50 |
2024-07-11 |