4226 |
#include <stdio.h> unsigned fun6(unsigned num) { unsigned k=1; do { k*=num%10; num/= |
47 |
2024-07-14 |
4227 |
#include <stdio.h> int fac(int n) { int f=1,i; for(i=1;i<=n;i++) f=f * i; return(f) |
79 |
2024-07-14 |
4228 |
#include <stdio.h> nt fun(int a, int b) { if(a>b) return(a); else return(b); } ma |
78 |
2024-07-14 |
4229 |
#include <stdio.h> int m=4; int func(int x,int y) { int m=1; return(x*y-m); } mai |
79 |
2024-07-14 |
4230 |
#include<stdio.h> func(int x) { x=10; printf(“%d, ”,x); } main( ) { int x=20; |
95 |
2024-07-14 |
4231 |
#include <stdio.h> int min( int x, int y ) { int m; if ( x> y ) m = x; e |
67 |
2024-07-14 |
4232 |
#include <stdio.h> int Sub(int a, int b) {return (a- b);} main() {int x, y, |
32 |
2024-07-14 |
4233 |
#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 |
4234 |
#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 |
4235 |
#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 |
4236 |
#include <stdio.h> main() {float fun(float x[]); float ave,a[3]={4.5,2,4}; ave=fun(a); |
34 |
2024-07-11 |
4237 |
#include “stdio.h” func(int b[ ]) { int j; for(j=0;j<4;j++) b[j]=j; } |
76 |
2024-07-11 |
4238 |
#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 |
4239 |
#include <stdio.h> main() { char diamond[][5]={{‘_’,’_’,’*’},{‘_‘,’*’,’_’, |
93 |
2024-07-11 |
4240 |
#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 |
4241 |
#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 |
4242 |
#include <stdio.h> int m[3][3]={{1},{2},{3}}; int n[3][3]={1,2 ,3}; main( ) { printf( |
50 |
2024-07-11 |
4243 |
#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 |
4244 |
#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 |
4245 |
#include <stdio.h> main() { int i, a[10]; for(i=9;i>=0;i--) a[i]=10-i; print |
32 |
2024-07-11 |
4246 |
#include <stdio.h> #define N 4 main( ) { int i,j; for(i=1;i<=N;i++) { for |
33 |
2024-07-11 |
4247 |
#include <stdio.h> main( ) { int x, y; for(x=30, y=0; x>=10, y<10; x--, y++) x/=2, |
21 |
2024-07-11 |
4248 |
#include <stdio.h> #define N 4 main() { int i; int x1=1,x2=2; printf("\n" |
75 |
2024-07-11 |
4249 |
#include <stdio.h> main() { int i,sum=0; i=1; do{ sum=sum+i; i++; }while(i<=10); prin |
74 |
2024-07-11 |
4250 |
#include <stdio.h> main() { int y=9; for(;y>0;y--) if(y%3==0) { printf(%d”, |
92 |
2024-07-11 |