info@tutorialdiary.com

Saturday, May 21, 2016

Common Output Questions in AMCAT 4 | Find the value

3:59 AM

Share it Please
Q. What will be the output of the following pseudo-code statements: 

integer a = 984, b=10
//float is a data-type to store real numbers.
float c
c = a / b
print c


Answer : 98.000000



Run this program in your compiler:

[code]
#include<stdio.h>
int main()
{
int x=984,y=10;
float c;
c=(x/y);
printf("%f",c);

return 0;
}
[/code]


0 comments:

Post a Comment