# Coding Hint Help

This is a discussion on Coding Hint Help within the C Programming forums, part of the General Programming Boards category; Hi, I am new to C. I want to write a C program in which I want the following: Find ...

1. ## Coding Hint Help

Hi,

I am new to C. I want to write a C program in which I want the following:

Find a age of a person who is in the range from 21 to 50 yeas of age and have vehicles which are in total a prime number. The number of vehicles is equal to sum of two digits of his age. The first two digits of his zip code is his age, number of vehicles is 3rd digit of zip code and the last 2 digits of zip code is sum of age and vehicles. These last two digits of zip code is power of 2.

Any suggestions and help appreciated.

2. Code:
```for i = 21 to 50
{
noVech = i/10 + 1%10;
if(isprime(noVech)
{
if(noVech<10)
{
checkforpowerof2(i+noVech)}}```

3. Originally Posted by ShashiKantSuman
Code:
```for i = 21 to 50
{
noVech = i/10 + 1%10;
if(isprime(noVech)
{
if(noVech<10)
{
checkforpowerof2(i+noVech)}}```
So let me see if I get this... you decided you'd respond to a question that's about 1/4 there with code that does nothing of value whatsoever?

4. Originally Posted by void12
Hi,

I am new to C. I want to write a C program in which I want the following:

Find a age of a person who is in the range from 21 to 50 yeas of age and have vehicles which are in total a prime number. The number of vehicles is equal to sum of two digits of his age. The first two digits of his zip code is his age, number of vehicles is 3rd digit of zip code and the last 2 digits of zip code is sum of age and vehicles. These last two digits of zip code is power of 2.

Any suggestions and help appreciated.
First... Take a look at this board's Homework Policy