You are on page 1of 8

NAME.

Apoorv Yadav
ENROLLMENT NO.
2020BELE084
BRANCH-
ELECTRICAL
ENGINEERING

Ist Semester 2020


Online C Compiler -
online editor X

onlinegdb.com/online.c_compiler
OnlineGDB bbeta Run DebugStopCShare HSave ()Beautily Language C
malin.c
online compiler and debugger for cic+*
7 *erseevrex***en********reoszroe**n**r*******eerereeseve**en/
code. complle. run, debug. share 8

9//calculate distance
IDE 16 #include stdio.h>
11 void main()
My Projects
Classroom new
12 printf("
13 tloat
VALUES OF
v,u,a,S;
INITIAL,FINAL VELOCITY AND ACCELARATION\n");

Learn Programming 14 ("INITIAL VELOCITY=");


15 scant(t u);
Programming Questions 16 print (°EINAL VELOCITY=");
Sign P 17 scanf ( f &v);
18 print ("ACCELARATION=");
Login 19
scan(3 a) ;
20

f 21 s-(vv-u"u)/2"a
("DISTANCE(s)=%F",5)
24

input
VALUES OP INITIA, PTNAL VELOCITY AND ACCELARATION
TNITIAL VELOCITY2
FINAL VELOCITY=4
ACCELARATION=8
DISTANCE (s) =48 .000000

...Program finished with exit code 21

About FAQ Blog Tems of Use Contact Usess NTER to exit console -
GDB Tutorial Credits Privacy
Connectin9- B Online
00-05
22-01-2021
WhatsApp X Online CCompiler-online editor x +
E c onlinegdb.com/online.c.compiler
Run DebugStop C Share H Save ()Beautily Language C
OnlineGDB beta maln.c
online compiler and debugger for clc+
/**************************************************************************
code. complle. run, debug. share OnL ine C Compiler.
IDE Code, Comp1le, Run and Debug C program online.
Write your code in this editor and press Run button to compile and execute i t .
My Projectss
Classroom new 7 *****************************************************************************/

Learn Programming

Programming Questions 10 #includecstdio.h>


11 void main()
Sign p
13 float f,c;
Login
14
("TEMPRATURE IN FAHRENHEIT=") 5
15 scant ( s t T )
-32)/1.8;

1 7 Pprint ("TEMPRATURE IN CENTIGRADE=%F*,);

19

input
TEMPRATURE IN PAHRENHEI=70
TEMPRATURE IN CENTIGRADE=21.111111

. Program finished with exit code 34


Press ENTER to exit console.|

About FAQ Blog Terms of Use Contact Us


GDB Tutorial Credits Privacy
2016-2021 GDB Online
0:12

22-01-2021
x
WhatsApp Online CCompiler-onlineeditor x +
C onlinegdb.com/online.c.compiler

beta
Run DebugStop C Share H Save () Beautily Language C
OnlineGDB
online compiler and debugger for cice
idin.c

Online C Compiler.
code. comple. run, debug. share. Code, Comp ile, Run and Debug C program onl ine.
Write your code in this editor and press Run" button to compile and execute it.
IDE

My Projects ******************************************************************************/
Classroom new

Learn Programming 10 //AREA of circle


11 #include<stdio.h>
Programming Questions 12 void main()
13
Sign p
14 float r,a
Login 15 print("ENTER THE VALUE OF RADIUS=");
Canrstr);
1/ a-5.1415 r rs
opnt AREA=5t,a)
19
20

2
input
ENTER THE VALUE OF RADIUS=20
AREA=1256.599976

... Program finished with


exit code 16
Press ENTER to exit console.|

About FAQ Blog Tems of Use Contact Us


GDB Tutorial Credits Privacy
2016-2021 GDB Online
00:13
22-01 -01-2021
WhatsApp X Online C Compiler- online editor X
+
E C onlinegdb.com/online.c.compiler
R u n DebugStop C Share H Save ( Beautify Language C
OnlineGDB beta maln.c
online compiler and debugger for clc+*
Code, Compile, Run and Debug C program onL ine.
code. comple. run. debug. share. Write your code in this editor and press Run" button to compile and execute it.

IDE

My Projectss
Classroom new 10 //area of rectangle
Learn Programming 11 #include<stdio. h>
12 void main()
Programming Questions 13
Sign U 14 float a,l,b;
15 of
Login 16
prantlength
scan(st 1);
rectangle=")
17 print ("bredth of rectangle=")
18 scan (f",&b);
a-lb
20 p a n ( A r e a of rectangle=%f ,a))

22
input
Length Ot rectangle-b

bredth of rectangle=5
Area of rectangle=30.000000

.Program finished with exit code 27


Press ENTER to exit console L

About FAQ-Blog Terms of Use Contact Us


GDB Tutorial Credits Privacy
2016-2021 GDB Online
0:15

22-01-2021
WhatsApp X Online CCompiler- online editor x +

C onlinegdb.com/online.c.compiler
Run DebugStopCShare HSave ) Beautily Language C
OnlineGDB beta
online compiler and debugger for cic+*
11 void main()
code. complle. run, debug. share 12
13 int ml, m2, m3, m4, m5, TOTAL;
IDE 14 float per;

My Projects 15
int ("Enter marks of each 5 subjects out of 100\n");
Classroom new
16

17
scan ddsddkd, aml, &m2, &m3,m4, im5);
TOTAL=m1+m2 m3+m4+m5;
18
Learn Programming Lo
int ("TOTAL MARKS=%d \n ", TOTAL);
Programming Questions 19 per-(TOTAL/5);
Sign U
20
21
("PERCENTAGE=%f\n",per);
if(per-91)

Login
22
print("PARTY KAB DEGA
(A+)");
23 elset
24 if(per=85)
25 print ("A");
26 else{
27 if(per>=80)
28
("B+")5
input

34

0
73

TOTAL MARKS=359
PERCENTAGE=71.000000

About FAQ Blog Tems of Use Contact Us


GDB Tutorial Credits Privacy Program finished with exit code 2
2016-2021 GDB Online Press ENTER to exit console.
00:18
P 2 2 401-2021
WhatsApp X Online C Compiler online editor
-

x+
E C onlinegdb.com/online.c.compiler
R u n DebugStop C Share HSave ()Beautily Language C
OnlineGDE bea
online compiler and debugger for cice
iaii.c

25 prantA);
26 elset
code. complle. run, debug. share 27 if(per>=80)

DE 28 prantr(B+ )
29 elset
My Projects 30 if(per>=70)
Classroom new 31 printr(C5
32 elset
Learn Programming 33 if(per>=55)
34 prnt:(c)
Programming Questions
35 else{
Sign U 36 printf(°fail");

Login
38

40

3
input
55

34

0
73
TOTAL MARKS=359

PERCENTAGE=71.000000

About FAa Blog Tems of Use Contact Us


GDB Tutorial Credits Privacy Program finished with exit code 2
https//www.onlinegdb.com/myfiles ine Press ENTER to exit console.|
00:19
P 22-01-2021
o 9whatsApp Online C Compiler- online editor x +
C onlinegdb.com/online.c.compiler
Run DebugStop C Share H Save ()Beautily Language C
OnlineGDB bea
online compiler and debugger for cic+
main.c

10
11
area of triangle
#include<stdio.h>
code. complle. run, debug. share 12 #include<math. h>
13
IDE
14 int main()
My Projects 15
float
Classroom new 16
17
s, a, b, C,
the
res;
of first side of
prantf("enter lengths triangle \n"
Learn Programming 18 scan (5 &a);
Programming Questions 19
prit ("enter the lengths of second side of triangle \n'");
20 scan ( s b);
Sign p the of third side
21
22
print("enter
scan(s&c);
lengths triangle\n");
Login
23 s-((a+b c)/2);
24
25
res-sa(s"((s-a)"(s-b)"(s c)));
prantr(area of triangle st , r e s ) ;
2 6 return 65
27

23
input
enter the lengths ot tirst 31de or trLangiLe

enter the lengths of second s1de of triangle

the lengths of third side triangle


enter
area of triangle 9.921567

About FAO Blog-Tems of Use -Contact Us Program finished wi th exit code 0


GDB Tutorial Credits Privacy Press ENTER to exit console U
2016-2021 GDB Online
00:36
P ) 2 01-2021

You might also like