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
#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;
}
Comments
Leave a comment