Created
January 7, 2023 23:09
-
-
Save fovelas/624adbcdea5436c8e73631dfe2c357bc to your computer and use it in GitHub Desktop.
C Programlama Çarpma İşlemi Kullanmadan İki Sayının Çarpımını Hesaplama
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
#include <stdio.h> | |
int main() { | |
int sayi1, sayi2, sonuc = 0; | |
printf("sayi1 : "); | |
scanf("%d", &sayi1); | |
printf("sayi2 : "); | |
scanf("%d", &sayi2); | |
for(int x = 0; x < sayi2; x++) { | |
sonuc = sonuc + sayi1; | |
} | |
printf("sonuc : %d", sonuc); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment