Assigment 3 of C Language
Assigment 3 of C Language
WRITE A C PROGRAM THAT CAN TAKE 3 NUMBERS FROM THE USER AND PRINT THE MAXIMUM
AMONG THEM (USING IF …ELSE IF LADDER)
*******INPUT : *******
#include <stdio.h>
int main()
return 0;
}
*******OUTPUT : *******
******INPUT *******
#include <stdio.h>
int main()
float a, b;
char x;
fflush(stdin);
scanf("%c", &x);
if (x == '+')
printf("The summation is %f", a + b);
else if (x == '-')
else if (x == '/')
else if (x == '*')
else if (x == '%')
return 0;
*******OUTPUT : ********
[Q3] Write a C Program that takes the input of 5 Subjects marks. Count the average marks.
Print the overall result for the following conditions.
i. if the student has 70% or more than 70% then Distinction.
ii.
if the student has average marks
iv.
if the student has average marks
*******INPUT*******
#include <stdio.h>
int main()
float a, b, c, d, e;
float x = (a + b + c + d + e) / 5;
return 0;
*******OUTPUT*********