Skip to content

Instantly share code, notes, and snippets.

@fovelas
Created January 7, 2023 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fovelas/624adbcdea5436c8e73631dfe2c357bc to your computer and use it in GitHub Desktop.
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
#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