Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- // 5
- //int solve5(int n);
- //
- //int main() {
- // int n;
- // scanf("%d", &n);
- // printf("%d has %d significand zeroes", n, solve5(n));
- // return 0;
- //}
- //
- //int solve5(int n) {
- // int ans = 0;
- //
- // while (n % 2 == 0 && n) {
- // ans++;
- // n /= 2;
- // }
- //
- // return ans;
- //}
- // 6
- //void solve6(int n);
- //
- //int main() {
- // int n;
- // scanf("%d", &n);
- // solve6(n);
- // return 0;
- //}
- //
- //void solve6(int n) {
- // unsigned char *representation = (unsigned char *)&n;
- //
- // printf("%d\n%d\n%d\n%d", representation[0], representation[1], representation[2], representation[3]);
- //}
- // 7
- //int main() {
- // float a, b;
- // scanf("%f", &a);
- // scanf("%f", &b);
- //
- // printf("%d\n", (int)(a + b));
- // printf("%d\n", (int)(a - b));
- // printf("%d\n", (int)(a * b));
- // printf("%d\n", (int)(a / b));
- //
- // printf("The minimum is %f", a < b ? a : b);
- // return 0;
- //}
- // 8
- //int main() {
- // char str[20];
- // scanf("%19s", str);
- //
- // int val = 32;
- // int i;
- // unsigned long n = strlen(str);
- // for (i = 0; i < n; i++) {
- // printf("Uppercase of %c is %c\n", str[i], str[i] - val);
- // printf("Uppercase of %c is %c\n", str[i], str[i] & ~val);
- // }
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement