google.com, pub-8786015629279405, DIRECT, f08c47fec0942fa0 Write a Program to add two numbers

Write a Program to add two numbers

0
/* Simple program to add two numbers…………………….*/

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


void main ()

{
int v1, v2, sum;                                  //v1,v2,sum are variables and int is data type declared

v1 = 150;

v2 = 25;

sum = v1 + v2;

printf ("The sum of %d and %d is= %i\n", v1, v2, sum);

}

Output:



The sum of 150 and 25 is=175

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Thank you for your interest 😊

We will back shortly after reviewing...

Thank you for your interest 😊

We will back shortly after reviewing...

Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top