2.E,H,G (C)
3.F (a)
4.3(C)
5.Both are male(D)
6. K (C)
7.RV (A)
8.P (D)
9.U (D)
10. T (D)
11.QW (c)
12. RV(a)
13.To immedate right of w
14,Q is to the immediate left of W (c)
15. p(b)
16.second to right
17.two
18.H(a)
19.l(a)
20.M(d)
PROGRAM:
# You are using Python
class complex:
def init(self,img,rel):
self.img=img
self.rel=rel
def add(self,a):
i=self.img+a.img
r=self.rel+a.rel
print("(%d+%dj)"%(r,i))
r1=int(input())
i1=int(input())
r2=int(input())
i2=int(input())
c1=complex(i1,r1)
c2=complex(i2,r2)
c1+c2
PROGRAM:
// You are using GCC
#include<stdio.h>
int main()
{
int n,i,j;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
{
printf("%d ",j);
}
printf("\n");
}
}
No comments:
Post a Comment