Sie sind auf Seite 1von 1

#include<stdio.

h>

#include<stdlib.h>

void suma (void);

int main (void){

suma();

system("pause");

return 0;

void suma (void){

int a, b, c;

printf("Este programa suma dos numeros\n");

printf("Da el valor de a:\n");

scanf("%d",&a);

printf("Da el valor de b:\n");

scanf("%d", &b);

c=a+b;

printf("a+b=%d\n",c);

Das könnte Ihnen auch gefallen