Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by barinow ( 11 years ago )
// zadanie 5.1
/* Napisz program, w którym zdefiniowana zostanie funkcja dodaj(int a, b). Funkcje wykorzystaj w programie. */
#include <stdio.h>
#include <stdlib.h>

int dodaj(int a, int b)
{
 int suma=0;
 suma=a+b;
 return suma;
}

int main(int argc, char *argv[])
{
 int a,b;
 
 int wynik;
 
 wynik = dodaj(6,12);
 
 printf ("suma liczb 6 i 12 wynosi %d", wynik);
 return 0; 
}

 

Revise this Paste

Your Name: Code Language: