#includevoid f1(int a[]);int a1[2][2],a2[2][2];int i,j;void main(){for(i=0;i
/*determine the pattern 1234321*/ #include<stdio.h> #include<conio.h> main() { int i, j; for (i=1; i<=7; i++) { if (i<5) { j=i; printf("\n %d", j); } else { j=8-i; printf("\n %d", j); } } getch() }
#include<stdio.h> #include<conio.h> int G[50][50],n,i,j,h,k; void FGraph(); int findR(); void main() { clrscr(); printf("\t\t\tmultistage graph"); printf("\n enter the no of vertices:"); scanf("%d",&n); printf("\n there is a edge between the follwing vertices enter its weight else 0:\n"); for (i=1;i<=n;i++) for(j=1;j<=n;j++) { G[I][J]=0; IF(I!=J)&&(i<J)) { printf ("%d and%d:",i,j); scanf(%d,&G[i][j]); } } FGraph(); getch(); } void FGraph() { int cost[50],d[50],p[50],r; for(i=1;i<=n;i++) cost[i]=0; for(j=n-1;j>=1;j++) { r=findR(j+1); cost[j]=G[j][r]+cost[r]; d[j]=r; } p[1]=1;p[k]=n; for(j=2;j<k;j++) p[i]=d[p[j-1]]; printf("%d-",d[1]); for(j=2;j<n;j++) { if((d[j]==d[j-1])(d[j]==0)) continue; if(d[j]<=n) printf("%d-"d[j]); } printf("%d",n); } int findR(int cu) { int r1=n+1; for(h=1;h<=n;h++) {if((G[h][cu]!=0)&&(r1==n+1)){ r1=j; continue; } if(G[h][cu]!=0) { if(G[h][cu]<G[r1][cu]) r1=h; }} return r1; }sorry i have answerd in c++
Nested loop, you mean; one loop in the other loop, eg: for (i=0; i<10; ++i) { for (j=0; j<i; ++j) { printf ("i=%d, j=%d\n", i, j); } }
#include<stdio.h> #include<conio.h> void main() { int i,j,k,l,m; clrscr(); for(i=0;i<4;i++) { for(j=i+1;j<=4;j++) { printf("%d",j); } for(k=1;k<=i;k++) { printf("%d",k); } printf("\n"); for(k=i;k>=1;k--) { printf("%d",k); } for(j=4;j>=i+1;j--) { printf("%d",j); } getch(); }
Johnny Mad Dog
If that's what's on the person's birth certificate. Yes, people do name their children with initials.
Juris Doctor - an attorney.
Jelena Jankovic (SRB)
When using initials in place of a first name, you would typically include a period after each individual initial. For example, if the name is John Doe and you are using the initials J.D., there would be a period after the "J" and after the "D" to indicate that they are separate initials.
Laura Jane O'Connell is a singer with the initials L J O.
n or j
Thomas Jefferson
Johann Sebastian Bach
right now the ones ppl discovered are : Sakura: D,V,A,D,^,A Temari:D,>,A,D,^,J Gaara:D,V,J,D,^,J Deidara(in bird mode):D,V,J,D Sasuke:D,^,J,D^A Shino:D,^,A,D,V,J,d Kakashi:A,D,V,J Sasori:A,D,A,J Naruto:D,J,A, D,V,J,A,D
Christ Jesus
Justin beiber