-
-
Save aligoren/5611786 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if defined(_WIN64) | |
#include <conio.h> | |
#include<stdio.h> | |
//C / C ++ KODLARINIZ | |
getch(); | |
#elif defined(_WIN32) | |
#include <conio.h> | |
#include<stdio.h> | |
// C / C++ KODLARINIZ | |
getch(); | |
#endif | |
#if defined(__linux__) | |
#include<stdio.h> | |
main(){int ara,final,ort; | |
char isim[10],soyad[10]; | |
printf("Name: "); | |
scanf("%s",isim); | |
printf("Lastname: "); | |
scanf("%s",soyad); | |
printf("ara sinav notu: "); | |
scanf("%d", &ara); | |
printf("Final Notu: "); | |
scanf("%d",&final); | |
ort=((ara*30)/100)+((final*70)/100); | |
printf("__KARNE__\n%s %s \nortalama= %d",isim,soyad,ort); | |
if(ort>=60) | |
{printf("\ngecti");} | |
else | |
{ | |
printf("\nkaldi");} | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment