Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- void topla(int a, int b);
- int main(void) {
- int a,b;
- printf("1. sayiyi gir: ");
- scanf("%d", &a);
- printf("2. sayiyi gir: ");
- scanf("%d", &b);
- topla(a,b);
- return 0;
- }
- void topla (int a, int b)
- {
- int sonuc;
- sonuc=a+b;
- printf("sonuc: %d", sonuc);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement