Why my code no run.It's bug in void nhap and no run | SoloLearn: Learn to code for FREE!

0

Why my code no run.It's bug in void nhap and no run

#include <stdio.h> void nhap( int &a, int &b); int tinhTong(int a, int b); void xuat(int c); int main() { int a, b; nhap(a,b); int c= tinhTong(a,b); xuat(c); } void nhap( int &a, int &b){ scanf("%d %d",&a, &b); } int tinhTong(int a, int b){ int c= a+b; return c; } void xuat(int c){ printf("%d",c); }

4/4/2020 2:35:38 PM

Nam Le

1 Answer

New Answer

0

Error in prototype of nhap, and call'it inside main