can anyone help me with the above problem?
i need the code in C language.
the problem is:
Store random numbers into two-dimensional array of 6 * 6 and interchange first 3 rows with last three rows

Do you have any code to show me that u've tried?

a two dimensional array is int blah [][];

there's a start for you!

``````void foo(int a)
{
int i, swap;
for (i = 0; i < 3; ++i)
{
memcpy(swap,     a[i],     sizeof swap);
memcpy(a[i],     a[5 - i], sizeof swap);
memcpy(a[5 - i], swap,     sizeof swap);
}
}``````

#include<stdio.h>
#include<conio.h>
void main()
{
int a,temp;
int i,j;
clrscr();
printf("enter elements of array (6*6)\n");
for(i=0;i<6;i++)
{
for(j=0;j<6;j++)
{
scanf("%d",&a[j];
}
}
printf("interchanging first 3 rows elements with last 3 rows elements\n");
temp=a;
temp=a;
temp=a;

a=a;
a=a;
a=a;

a=temp;
a=temp;
a=temp;

for(i=0;i<6;i++)
{
for(j=0;j<6;j++)
{
printf("%d\t",a[j]);
}
printf("\n");
}
}

int i,j;

@kalai: click on the code tag icon in the editing window, and paste your code in between the code tags. Makes your code easy to read and study, and not look like html text and all squished to the left hand margin.

Write a program that reads three nonezero float values and determines and prints if they could represent the sides the sides of a triangle.

``````#include <stdio.h>
main()
{
float a, b, c;

printf("Enter three nonezero valuues: );
scanf("%d%d%d", &a, &b, &c);

return 0;
}``````