April Fools Contest 2017, problem: (A) Numbers Joke Solution in C

#include<stdio.h>

int main(void)
{
	int mas[30] = {4, 22, 27, 58, 85, 94, 121, 166, 202, 265, 274, 319, 346, 355, 378, 382, 391, 438, 454, 483, 517, 526, 535, 562, 576, 588, 627, 634, 636, 645};
	int i;
	scanf("%d", &i);
	printf("%d", mas[i - 1]);
}
#include<stdio.h>

int main(void)
{
	int mas[30] = {4, 22, 27, 58, 85, 94, 121, 166, 202, 265, 274, 319, 346, 355, 378, 382, 391, 438, 454, 483, 517, 526, 535, 562, 576, 588, 627, 634, 636, 645};
	int i;
	scanf("%d", &i);
	printf("%d", mas[i - 1]);
}

More from author

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related posts

Advertismentspot_img

Latest posts

7 Reasons This Viral Kitchen Gadgets Is Worth Every Single Penny

📢 As an Amazon Associate, I earn from qualifying purchases.If you had told me six months ago that a single purchase would change how...

Company of Heroes 3 Final Stand Update v2.5.6.50313-RUNE

Company of Heroes 3 Receives Final Stand Update v2.5.6 Strategy enthusiasts and World War II tactics fans have a new reason to dive back into...

Everything You Need to Know About Viral Kitchen Gadgets Right Now

📢 As an Amazon Associate, I earn from qualifying purchases.If you had told me six months ago that a single purchase would change how...

Want to stay up to date with the latest news?

We would love to hear from you! Please fill in your details and we will stay in touch. It's that simple!