Skip to content

Instantly share code, notes, and snippets.

@batuhanozkose
Created January 8, 2022 11:44
Show Gist options
  • Select an option

  • Save batuhanozkose/748b9b7c2f934e6d6348dc95b9a301b5 to your computer and use it in GitHub Desktop.

Select an option

Save batuhanozkose/748b9b7c2f934e6d6348dc95b9a301b5 to your computer and use it in GitHub Desktop.
C ile çok basit karakter toplama işlemi.
#include <stdio.h>
int main() {
int a;
int b;
printf("Enter a character: \n");
scanf("%d", &a);
printf("Enter another character: \n");
scanf("%d", &b);
printf("Character Total: %d\n", a + b);
if (a == b) {
printf("The characters are the same.\n");
} else {
printf("The characters are different.\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment