/* Write a program to accept nos from user till their sum exceeds 50
Developed by : Malhar Vora
Developed on : 15-11-2010
Development Status : Completed and tested
Email : vbmade2000@gmail.com
WebSite : www.malhar2010.blogspot.com
********************************************************************************************/
void main()
{
int a=0,sum=0;
test:
if(sum>=50)
{
printf("Sum exceeds 50");
return;
}
printf("Enter no:");
scanf("%d",&a);
sum=sum + a;
goto test;
}
Monday, November 15, 2010
A program to accept nos from user till their sum exceeds 50
Labels:
C
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.