Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Wednesday, December 30, 2009

Write a 'C' program to enter two integers and to print thier sum?



#include<stdio.h>
main()
{
int a, b, s;
prinft("Enter two integers\n");
scanf("%d %d", &a, &b);
s = a + b;
printf("The Sum is %d\n", s);
return(0);
}

For eg :-

Output :-

Enter two integers
25 10
The Sum is 35

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP