You are on page 1of 1

#include<stdio.

h>
int main()
{
int input=0;
while(1)
{
printf("enter the +ve number to continue:");
scanf("%d",&input);
if(input<0)
{break;}
else
{
printf("%d\n",input);
}

You might also like