0

 a=2;b=3;c= Find the value of X In all the sentences, as follows X=a*b*a-(b+c/a) X=a mod 100 X=a mod b mod c X= c*c*b\2 + 5

.

1st Apr 2021, 6:20 PM
Mohammad _ 97 Alawneh
Mohammad _ 97 Alawneh - avatar
5 Answers
+ 2
in c language u can get X value for each instruction like this đŸ€·â€â™‚ïž : #include <stdio.h> int main() {  int a=2,b=3,c=2; //set C value float X; X=a*b*a-(b+c/a); printf("\nX=%f",X); X=a%100; printf("\nX=%f",X); X=a%b%c; printf("\nX=%f",X); X= c*c*b/2 + 5; printf("\nX=%f",X); return 0; }
1st Apr 2021, 6:35 PM
Ou-Sama
Ou-Sama - avatar
+ 1
I think you have posted your assignment unknowingly. And c = ? question is not clear. language isn't mentioned.
1st Apr 2021, 6:24 PM
Kashyap Kumar
Kashyap Kumar - avatar
0
I'm sorry part of the question was missing, ha ha the right question
1st Apr 2021, 6:48 PM
Mohammad _ 97 Alawneh
Mohammad _ 97 Alawneh - avatar
0
a=2;b=3;c=1 value of X In all the sentences, as X=a*b*a-(b+c/a) X=a mod 100 X=a mod b mod c X= c*c*b\2 + 5 X= b/(b-(c-1)) X =36758 mod 10 X= b/b mod c X=b+a+c\2
1st Apr 2021, 6:49 PM
Mohammad _ 97 Alawneh
Mohammad _ 97 Alawneh - avatar
0
like this ? #include <stdio.h> int main() {  int a=2,b=3,c=1; float X; X=a*b*a-(b+c/a); printf("\nX=%f",X); X=a%100; printf("\nX=%f",X); X=a%b%c; printf("\nX=%f",X); X= c*c*b/2 + 5; printf("\nX=%f",X); X= b/(b-(c-1)); printf("\nX=%f",X); X =36758 % 10; printf("\nX=%f",X); X= b/b % c; printf("\nX=%f",X); X=b+a+c/2; printf("\nX=%f",X); return 0; } result : X=9.000000 X=2.000000 X=0.000000 X=6.000000 X=1.000000 X=8.000000 X=0.000000 X=5.000000
1st Apr 2021, 7:01 PM
Ou-Sama
Ou-Sama - avatar