Professional Documents
Culture Documents
PF Assignment Four
PF Assignment Four
Assignment #4
Pf section R
L1s19bsse8006
Question no 1
#include<iostream>
#include<stdio.h>
#include<math.h>
int main()
int a; int b;
if (a == b)
pointer[a][b] = 0;
cout << "x[" << a<< "][" << b<< "]=" << pointer[a][b] << endl;
}
Question no 2
#include<iostream>
#include<stdio.h>
#include<math.h>
int main()
cout << "the square root of the numbers in the array " ;
cout<< endl;
int x;
int y;
poniter2[x][y] = sqrt(pointer[x][y]);
cout<< endl;
}
Question no 3
#include <iostream>
if (number== 1 || number == 0)
return 1;
return 0;
int main()
if (arr(array,number))
cout<<endl;
cout<<”the answer is “;
cout<<endl;
else
{
cout<<endl;
}
Question no 4
#include<iostream>
#include<stdio.h>
#include<math.h>
int main()
int i;
int j;
Int thesum = 0;
cout << " the word summation in the array " << thesum ;
cout <<pointer[i][j];