What Will Be Correct Set Of C Code For Given Data 8216a8217 And #9
What will be Correct Set of C# Code for given data ‘a’ and ‘b’ to print output for ‘c’ as 74?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Data Types, Variables and Operators - Integer Data Types - Quiz No.1.
What will be Correct Set of C# Code for given data ‘a’ and ‘b’ to print output for ‘c’ as 74?
int a = 12; float b = 6.2f; int c; c = a / b + a * b; Console.WriteLine(c);
int a = 12; float b = 6.2f; int c; c = a / convert.ToInt32(b) + a * b; Console.WriteLine(c);
int a = 12; float b = 6.2f; int c; c = a / convert.ToInt32(b) + a * convert.ToInt32(b); Console.WriteLine(c);
int a = 12; float b = 6.2f; int c; c = convert.ToInt32(a / b + a * b); Console.WriteLine(c);