Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83dc831c10 | ||
|
|
52883d7b74 | ||
|
|
b8c56d8978 |
@@ -1,16 +0,0 @@
|
||||
//Made by Vlad. Budnitski.
|
||||
//AlphaTech - Programming Course.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int grade;
|
||||
scanf("%d", &grade);
|
||||
if (grade >= 60)
|
||||
printf("Congratulations! \n");
|
||||
else
|
||||
printf("Failed.. Try again \n");
|
||||
return 0;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
//Made by Vlad. Budnitski.
|
||||
//AlphaTech - Programming Course.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main()
|
||||
{
|
||||
int num1, num2;
|
||||
printf("Enter two numbers:\n");
|
||||
scanf("%d", &num1);
|
||||
scanf("%d", &num2);
|
||||
if (num1 > num2)
|
||||
printf("max = %d\n", num1);
|
||||
else
|
||||
printf("max %d\n", num2);
|
||||
return 0;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int grade;
|
||||
|
||||
printf("\nBitte geben Sie einen Wert ein: ");
|
||||
scanf("%d", &grade);
|
||||
printf("\n");
|
||||
|
||||
if (grade >= 60)
|
||||
{
|
||||
printf("Congratulations!\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Sorry, you have failed .. Try again.\n");
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Finding if a given number is EVEN or ODD*/
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
int num;
|
||||
|
||||
printf("\n");
|
||||
printf("This programm checks if a number is even or odd.\n");
|
||||
printf("Please enter a number: ");
|
||||
|
||||
scanf("%d", &num);
|
||||
|
||||
if (num % 2 == 0)
|
||||
{
|
||||
printf("The number is EVEN\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("The number is ODD\n");
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user