diff --git a/csci218/Lect/910.out b/csci218/Lect/910.out new file mode 100755 index 0000000..e27df00 Binary files /dev/null and b/csci218/Lect/910.out differ diff --git a/csci218/Lect/910class.c b/csci218/Lect/910class.c new file mode 100644 index 0000000..a5bf11f --- /dev/null +++ b/csci218/Lect/910class.c @@ -0,0 +1,15 @@ +#include + +int main() { + + int grade; + + printf("Enter your grade: "); + scanf("%d", &grade); + + if (grade >= 90) { + printf("You got an A!!\n"); + } + + return 0; +} diff --git a/csci218/Lect/a.out b/csci218/Lect/a.out new file mode 100755 index 0000000..688c3a3 Binary files /dev/null and b/csci218/Lect/a.out differ diff --git a/csci218/Lect/tempClass.c b/csci218/Lect/tempClass.c new file mode 100644 index 0000000..f600d99 --- /dev/null +++ b/csci218/Lect/tempClass.c @@ -0,0 +1,24 @@ +//example of a simple program to display diffrent message for temperature +#include +int main(){ + // display the purpose of the program + printf("This program will display diffrent message for temperature.\n"); + + // define the variable temperature + float temperature = 77; + // check the temperature and display the message + if (temperature < 32){ + printf("It is freezing outside.\n"); + printf("Wear a coat.\n"); + } else if (temperature < 50){ + printf("It is cold outside.\n"); + printf("Wear a jacket.\n"); + } else if (temperature < 70){ + printf("It is cool outside.\n"); + } else if (temperature < 90){ + printf("It is warm outside.\n"); + } else { + printf("It is hot outside.\n"); + } + return 0; +} diff --git a/csci218/Lect/tempClass.out b/csci218/Lect/tempClass.out new file mode 100755 index 0000000..515cdb1 Binary files /dev/null and b/csci218/Lect/tempClass.out differ diff --git a/csci218/Lect/welcome.c b/csci218/Lect/welcome.c new file mode 100644 index 0000000..67b7929 --- /dev/null +++ b/csci218/Lect/welcome.c @@ -0,0 +1,10 @@ +#include + +int main(void) { + + for (int i = 0; i < 1000; i++) { + printf("Welcome! #%d\n", i + 1); + } + + return 0; +} diff --git a/csci218/Lect/welcome.out b/csci218/Lect/welcome.out new file mode 100755 index 0000000..e916846 Binary files /dev/null and b/csci218/Lect/welcome.out differ