#include <stdio.h>
int main()
{
int x = 3 + 4 % 5 - 6;
int q = -3 * 4 % - 6 / 5;
printf ("\n %d %d \n",x,q);
int r,t,y,u,i,o,p,l,k;
r = -5 % -5; //0
t = -5 % 5; //0
y = 5 % -5; //0
u = -3 % -5; //-3
i = -3 % 5; //-3
o = 3 % -5; //3
p = -5 % -3 ; //-2
l = -5 % 3; //-2
k = 5 % -3; //2
int p1,l1,k1;
p1 = -5 / -3 ; //1 [-(5/3)common aise nahi hoga,ye katega]
l1 = -5 / 3; //-1 [-4 + -2 --> -(4+2) here is allowed]
k1 = 5 / -3; //-1
printf("\n %d %d %d %d %d %d %d %d %d %d %d %d \n",r,t,y,u,i,o,p,l,k,p1,l1,k1);
return 0;
}
OUTOUT:
For more info click here
int main()
{
int x = 3 + 4 % 5 - 6;
int q = -3 * 4 % - 6 / 5;
printf ("\n %d %d \n",x,q);
int r,t,y,u,i,o,p,l,k;
r = -5 % -5; //0
t = -5 % 5; //0
y = 5 % -5; //0
u = -3 % -5; //-3
i = -3 % 5; //-3
o = 3 % -5; //3
p = -5 % -3 ; //-2
l = -5 % 3; //-2
k = 5 % -3; //2
int p1,l1,k1;
p1 = -5 / -3 ; //1 [-(5/3)common aise nahi hoga,ye katega]
l1 = -5 / 3; //-1 [-4 + -2 --> -(4+2) here is allowed]
k1 = 5 / -3; //-1
printf("\n %d %d %d %d %d %d %d %d %d %d %d %d \n",r,t,y,u,i,o,p,l,k,p1,l1,k1);
return 0;
}
OUTOUT:
For more info click here
No comments:
Post a Comment