Computer Science, asked by ashwinirenu123, 1 month ago

write a program to input any two numbers and print their sum and product by leaving two lines in between​

Answers

Answered by supriyasoham1988
0

Answer:

C LANGUAGE DEV C ++

#include<stdio.h>

int main()

{

int a,b,c,d;

printf("ENTER A NUMBER ")

scanf("%d",&a)

printf("ENTER THE SECOND NUMBER")

scanf("%d",&b)

c=(a+b);

d=(a*b);

printf("THE REQUIRED RESULT IS %d %d",a,b,c,d");

return 0;

//if you like to add decimals then use float a,b,c,d

and %f instead of %d.

Similar questions