Sorry to post this kinda thread here but I just can't find anyone to ask this rather than here.
I found an exam question recently which used this C++ code. The stem of the code is
Code:
#include<stdio.h>
main()
{
int a, b, c, s;
scanf ("%d, %d, %d", &a, &b, &c);
s=a+b+c;
printf("%d",s);
}
Now my question is, can this statement be performed by a loop statement? If yes, then can someone provide me the code. I already thought about the code but it seems too irrelevant of even performing the code that I made up. So I didn't want to write that code here.
TIA