Skip to content

Instantly share code, notes, and snippets.

@huseyin
Last active August 29, 2015 14:16
Show Gist options
  • Save huseyin/f94465a787e3261a8c9e to your computer and use it in GitHub Desktop.
Save huseyin/f94465a787e3261a8c9e to your computer and use it in GitHub Desktop.
örnek c programı
/*
* Programlamaya Giriş II, örnek program
*/
#include <stdio.h>
main(void) {
int x, y;
scanf("%d", &x);
scanf("%d", &y);
if (x < y) {
while (x <= y) {
printf("%d \t", x);
x++;
}
}
else if (x > y) {
while (x >= y) {
printf("%d \t", y);
y++;
}
}
else {
printf("%d", x);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment