Q. What will be the output of the following pseudo-code statements:
integer a = 984, b=10
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;
}
0 comments:
Post a Comment