Structure in C
struct add //abstract data type
{
int A,B;
}x,sum;
int main()
{
printf("Enter first no\n");
scanf("%d", &x.A);
printf("Enter second no \n");
scanf("%d", &x.B);
// adding nos
sum.A=x.A+x.B;
printf("Sum is = %d", sum.A);
return 0;
}
struct add //abstract data type
{
int A,B;
}x,sum;
int main()
{
printf("Enter first no\n");
scanf("%d", &x.A);
printf("Enter second no \n");
scanf("%d", &x.B);
// adding nos
sum.A=x.A+x.B;
printf("Sum is = %d", sum.A);
return 0;
}
Modify the following Floyd-Warshall algorithm by introducing a π( pi ) table as per the class’s discussion. Here you can write one function...