Saturday, March 3, 2012

Program To Read Two Numbers And Print The Sum Of Given Two Numbers.

No comments

/*It is complied on Turbo C++ 3.0*/

#include<stdio.h>
#include<conio.h>
     void main()
          {
               float num1,num2,sum=0;
               clrscr();

               printf("\n Enter Two Number :: ");
               scanf("%f%f",&num1,&num2);
               sum=num1+num2;
               printf("\n Num1 + Num2 = %f",sum);
               getch();
          }

0 comments:

Post a Comment

Entries RSS Comments RSS

Sample Text

Pages


Copyright © Lovely Codes
Powered by Blogger
Distributed By Free Blogger Templates | Design by N.Design Studio
Blogger Theme by Lasantha - PremiumBloggerTemplates.com