Adding the numbers cumulatively - Repeated addition of numbers in C

Adding the numbers until the user feels to stop the addition process
#include<stdio.h>
 
int main()
{
   int a, b, c;
   char ch;
 
   while(1)
   {
      printf("Enter values of a and b\n");
      scanf("%d%d",&a,&b);
 
      c = a + b;
 
      printf("a + b = %d\n", c);
 
      printf("Do you wish to add more numbers(y/n)\n");
      scanf(" %c",&ch);
 
      if ( ch == 'y' || ch == 'Y' )
         continue;
      else
        exit(0);//Here we can put break statement instead of exit() function.
   }
 
   return 0;
}