Engineering 6 jguan
Wednesday, March 1, 2017
calculate values
1. int a=27, b=6, c;
c= b%a;
c=6;
2.int a=27, b=6;
float c;
c=a/(float)b;
27/6.0=4.5;
3. int a;
float =b;
c=18.6;
a=c/b;
18.6/6=3.1=3;
4.int b=6;
float =a ;
c =18.6;
a=(int)c/b;
18/6=3.;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment