Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions TASKS/Task
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* Write your program after the comment
Write a program that asks and reads the score of a user
If the score is less than 80, display to the user that they
are not elgible to be enrolled.
If the score is greater than or equal 80, they can be enrolled.
*/

#include <stdio.h>

int main() {
int num;
printf("input your score ", num);
scanf("%d",&num);
printf("You input %d", num);


if (num < 80)
{
printf("user is not eligile to be enrolled. \n");
}
else (num >= 80);
{
printf("user is enrolled. \n");
}

return 0;
}