Timus Problem 1785 Solution

Timus Problem Solution

Timus Problem 1785 Solution

#include <stdio.h>

int main()

{

int n;

scanf("%d",&n);

if (n >= 1 && n <= 4)

{

printf("few");

}

 else if (n >= 5 && n <= 9){

printf("several");}

  else if (n >= 10 && n <= 19){ printf("pack");}

        else if (n >= 20 && n <= 49){printf("lots");}

        else if (n >= 50 && n <= 99)  {

        printf("horde");}

        else if (n >= 100 && n <= 249) {

        printf("throng");}

       

        else if (n >= 250 && n <= 499){

        printf("swarm");}

        else if (n >= 500 && n <= 999){

     printf("zounds");}

        else if(n >= 1000 && n <= 2000){

        printf("legion");}

        return 0;

    }

 

0 Comments

You may find interest following article

Complete Guide: Create Laravel Project in Docker Without Local Dependencies

Create Laravel Project Through Docker — No Need to Install PHP, MySQL, or Apache on Your Local Machine In this tutorial, I’ll show you how to create and run a full Laravel project using Docker containers. That means you won’t have to install PHP, MySQL, or Apache locally on your computer. By the end of this guide, you’ll have a fully functional Laravel development...