Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If.,..statement #13

Open
0759537471 opened this issue Oct 17, 2024 · 0 comments
Open

If.,..statement #13

0759537471 opened this issue Oct 17, 2024 · 0 comments

Comments

@0759537471
Copy link

#include <stdio.h>

int main()
{
int age, income;
printf("Enter your age: ");
scanf("%d", &age);
printf("Enter your annual income: ");
scanf("%d", &income);

if (age >= 21 && income >= 21000) {
    printf("Congratulations, you qualify for a loan.\n");
} else {
    printf("Unfortunately, we are unable to offer you a loan at this time.\n");
}

return 0;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant