Answer to Question #292079 in C for Nickleodeon20

Question #292079

1,2,3,...what?

by CodeChum Admin

I’m Dr. Frankenstein, and I’ve just created an intelligent monster! It can even count numbers now but the problem is, it can only count up to 3, so maybe it isn’t so intelligent after all. I want to use my creation to terrorize the villages but it keeps malfunctioning when it sees a digit that is greater than 3 so the villagers just put up signs of digits greater than 3. Make a program that is able to recognize digits greater than 3 so that it can avoid it or I'll have my monster terrorize YOU instead!


Input


1. Integer n


Description

The integer to be processed.

Constraints

0 <= n <= 2147483647

Sample

45
1
Expert's answer
2022-01-30T17:39:55-0500
 #include <stdio.h>
#include <stdlib.h>



int main()
{
    int num;
    printf("Enter a number: ");
    scanf("%d", &num);
    if (num > 3) {
        printf("You are a dead meat bro.");
    } else {
        printf("You are free bro.");
    }
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS