update
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
//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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
//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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
#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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user