Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int weight = 165;
- printf("If I eat this watermelon I will weigh %d lbs \n", weight + 12);
- int a = 86;
- int b = 21;
- printf("%d \n", a/b); //if you use integers on both sides of division, result is integer value
- float c = 86.0;
- float d = 21.0;
- printf("%f \n", c/d);
- printf("%d \n", a%b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement