Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

Program to add two numbers

Posted By: Huberta Miller     Category: C Programming     Views: 5464

Write a program to add two numbers.

Code for Program to add two numbers in C Programming

#include<stdio.h>
#include<conio.h>

void main()
{
    int number;
    float amount;

    number = 100;

    amount = 30.75 + 75.35;
    printf("%d\n",number);
    printf("%5.2f",amount);
    getch();
}
  
Share: 


Didn't find what you were looking for? Find more on Program to add two numbers Or get search suggestion and latest updates.

Huberta Miller
Huberta Miller author of Program to add two numbers is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!