evaluate the following c++ expressions where a,b,c are integer and d,f are floating point numbers .the values are a= 5, b= 6 ,d= 3.5.
Answers
Answered by
1
Answer:
Explanation:
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a;
int b;
int c;
float d;
float f;
printf("Enter the number for a");
scanf("%d",&a);
printf("Enter the number for b");
scanf("%d",&b);
printf("Enter the number for c");
scanf("%d",&c);
printf("Enter the number for d");
scanf("%f",&d);
printf("Enter the number for f");
scanf("%f",&f);
float d=a+b+c+d+f;
printf("the sum=%f",d);
getch();
}
try this in this you can give no. of your own choice :)
Similar questions