+ 7
What is the output of this code?
#include <iostream> using namespace std; int main() { float a=15.0; float b=2.0; float c=a%b; cout<<c; return 0; } Options :- 1 - 1.0 2 - Syntax Error 3 - Runtime Error 4 - 1
11 Answers
+ 12
syntax error
+ 3
1
+ 2
Shtorm'a нет так как % доступна лишь для int переменных
+ 1
Syntax error, because operator "%" only for integer variables
+ 1
#Demid Metelnikov It's Runtime Error not Syntax Error
+ 1
Трудная штука. Awesome)
+ 1
2
0
Error
0
1-1.0
0
my answer is 1.0 that is right or wrong
0
#Diwakar Singh Rana It's wrong
Answer : Runtime Error