In previous article C helpline and A simple "c" program, we were discuss about C Structure and a simple program.In this article we will discuss about a program for addition of two numbers.
Write a program to add two Numbers
//Main function,void show no return any value
//Declaration of variables
printf("Enter two numbers");
//Take input from user
//show output as a sum of two numbers
Enter two numbers
Note:-"//" This symbol show comment for only user understanding.It is not counted in a computer program.
Different data types used in a program written as a user input in a given form:-
- Integer %d
- long Integer %ld
- Float %f
- Long Float %lf
- character %c
- string %s