'C' PROGRAMMS
Thursday, January 20, 2011
Overview of C
Write a program which performs addtion on two numbers and displays the result.
#include< stdio.h >
void main()
{
int number;
float amount;
number = 100;
amount = 30.75 + 75.35;
printf("%d\n",number);
printf("%5.2f",amount);
getch();
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment