2.1 The Following Code Is Not Displaying The Correct Output, Which Is 1500. Identify The Error
2.1 The Following Code Is Not Displaying The Correct Output, Which Is 1500. Identify The Error
#include<stdio.h>
#include<conio.h>
main()
float r;
p = 5000;
t = 4;
r = 7.5;
si = p*t*r/100;
clrscr();
printf("%f", si);
getch();
2.2 The following code is not displaying the output on the screen. Identify the error.
#include<stdio.h>
#include<conio.h>
main ()
int number;
scanf("%d", &number);
#include<stdio.h>
#include<conio.h>
main()
float area;
int radius=4;
area = 3.14*radius**2;
printf("%f", area);
#include<stdio.h>
#include<conio.h>
main()
char name;
name = 'hello';
printf("%c", name);
#include<stdio.h>
#include<conio.h>
typedef int no of students;
main()
no of students num;
scanf("%d",&num);
scanf("%d",&max);
getch();
#include<stdio.h>
#include<conio.h>
main()
int a = 4;
clrscr();
a = 5;
#include<conio.h>
main()
int a = 5, c = 2, d = 4, n = 6;
float ans;
clrscr();
printf("%f", ans);
getch();
#include<stdio.h>
#include<conio.h>
main()
char x, y;
int z;
x = a;
y = b;
z = x + y;
printf("%d", z);
getch();
#include<conio.h>
main()
enum fruits f;
enum color c;
f = apple;
c = pink;
clrscr();
getch();
2.10 The following is not displaying thr correct output. Identify the errors.
#include<stdio.h>
#include<conioh>
main()
int num;
clrscr();
getch();
}
printf("%d", y);
#include<stdio.h>
void main()
int i = 2, j = 3, k = 0;
int p;
p = (i , k, j );
printf("%d\n", p );