Commit 78a3e2df by Gürcan Güleç

Committing homework files

parent 7137de3c
#include <stdio.h>
int main ()
{
int countDown = 11;
do
{
countDown--;
printf("The value of countDown is %d\n", countDown);
}while(countDown > 0);
return 0;
}
#include <stdio.h>
int main ()
{
int sum = 0;
for (int number = 0; number <= 10; number++) //Initialize for loop
{
printf("The value of number is %d\n", number); //Print out the value of i
sum = sum + number;
}
printf("The sum of all the numbers is %d\n", sum);
return 0;
}
#include <stdio.h>
int main ()
{
int number = 0;
while (number <= 10)
{
printf("A = %d\n", number);
if (number == 3)
{
printf("Stopping here cuz my favorite number is %d\n", number);
break;
}
number++;
}
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment