Warning: include(topsc.html): failed to open stream: No such file or directory in /home/eng123/public_html/sourcecode/c/unix/swaping.html on line 13

Warning: include(topsc.html): failed to open stream: No such file or directory in /home/eng123/public_html/sourcecode/c/unix/swaping.html on line 13

Warning: include(): Failed opening 'topsc.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eng123/public_html/sourcecode/c/unix/swaping.html on line 13

Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

Computer Science / IT
Electronics
Electrical
Mechanical
Chemical
Civil

CAT / MBA

GMAT / Foreign MBA
Latest Jobs

Displaying  Source Code(s)

Warning: include(adsc.html): failed to open stream: No such file or directory in /home/eng123/public_html/sourcecode/c/unix/swaping.html on line 31

Warning: include(adsc.html): failed to open stream: No such file or directory in /home/eng123/public_html/sourcecode/c/unix/swaping.html on line 31

Warning: include(): Failed opening 'adsc.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eng123/public_html/sourcecode/c/unix/swaping.html on line 31

 Small program for swaping & average calculation -------------------------------------------------------------------------------- Description : A small program to read the i/pom the terminal and swap their values, Also useful to find the sum & average #include #include #include #include int i,n; main() { int a,b,swap(),hellow(); /*char getch(),k;*/ char k; do { hellow(); printf("Enter the value of A = "); scanf("%d",&a); printf("Enter the value of B = "); scanf("%d",&b); printf("values before swaping are A=%d B=%d
,a,b); swap(&a,&b); printf("values after swaping are A=%d B=%d
,a,b); printf("Press Y to continue or any other key to Terminate
); /* printf("Quit? (y/n): ");*/ scanf("%s", &k); printf("
); } while (k == 'Y' || k == 'y'); return (0); /* getchar() = k; if (k=!"N") { printf("U can continue
); main(); } else { printf("U can break
); goto } */ } swap(int*x,int*y) { int z; z=*x; *x=*y; *y=z; return(0); } /* #include int i,n; void main() */ hellow() { int a[100]; float Avg=0,sum=0; printf("Enter the value of N = "); scanf("%d",&n); for (i=0;i,sum,Avg); return(0); } /*#include #include #include main() abey() { int i; time_t t1,t2; (void) time(&t1); for (i=1;i<=300;++i) printf("%d %d %dn",i, i*i, i*i*i); (void) time(&t2); printf("n Time to do 300 squares and cubes= %d secondsn", (int) t2-t1); return(0); } */

Contribute content or training reports / feedback / Comments
job placement papers