0% found this document useful (0 votes)
33 views6 pages

Neopat Technical Week 2

Uploaded by

kratos10703
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views6 pages

Neopat Technical Week 2

Uploaded by

kratos10703
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Rn 'your coae n11e

(()t; ,r-~ :J• I ••t

finclu c»<ltd lo. h>


Singl e FIie Progr a mmin g Ques tion fnt •in(H
{nt 1;
fLoot j;
char k;
scanf( "Sd", d );
sc■nf( ~f • , e: j);
getcha r ();
sunf( "k ", s k); . • i);
locker 1ddrn s in
printf ( ''Origin■ l
locker 1ddrn s in j • • j);
printf ( "Origin■l
( •·)k};
printf ("Ori1 inal locker addres s in•
i •. 1;
k ·, l ;
printf ( "Ne., locker addres s in i • • ·
printf ( "New locker addres s in k , •-;
" 0;
Input forma t

to O" d a

Outpu t forma t

g
a
1#-i@Ei
FIii your com !htt•
•.

p, float ( input().atr ip())


single A e Proa a Q e tion rnult, int(P)
prirt ( fNTIMt int•pr val.- of {F} is: {rHta""lt } "')

t J t

Input formal

Jt

pee t IIOn
c(17)
Flll your cod• here,--.

1 !/, You .,.. udn, ecc


2 •includ9<1tdlo.h>
Single File Progra mming Question ) int main()
... {
irrt a, b, thirdAngle;:
5
6 int sumOfAngles;
7 int productOfAngles;
s scanf("l;;d Id", 8.a, 2.b);
9 thirdAngle = 180- (a +b);
10 sumOfAngles = a+b+thirdAngle;
t o d
11 productOfAngles=a • b;
<l g printf("Third Anel@ : ld\n", thirdAngle);
printf("Sum of Angles: '.:d\n'', sUIIIOfAn&les);
printf( "Product of Given An&les: t.d\ n", productOfAn&les);
i n l"e>

0 t 0"9

dowoy

input format

a b

n, ltn11t fn,rnnt •
Fill your code here
\ C(") V •
1 11 You .,.. ualnc OCC
llnc:ud#<ltdio. h>
Single File Pr 09ra mmtng Question int mdn(){
~ int nu11;
s scanf ( "Sd", anum);
6 lf (num 2){
printf ( "8 \ n" );
}• l" {
9 int pairs , ( num · (num-1)) '2;
:u printf("Sd\ n" ,pdr~) ;

rPt.urn 9;

input format

Output format

11-,., to th• sompkl output lor u

lt§Mi I
V

Rll yaur coele hate

/I Vou ere ulilll ]IYI


2 lapo~t jeva. util. ;
Slngle File Programming Questio n 3 public clan luin{
~ public ,tatlc void •in(Str in,[) ar1s){
s Scann&r scenner • n• Scenntr(Systea. in);
6 doubl• fahre-nheit scanner. nextDouble();
doublt celsius , (fahrenl wit -32 ) "5.8/ t.e;
Syste-■.out . printf ( "Equival e-nt tn,perat ure
in C..lsiin : ~ -H .n·, cehiin) ;
9 scanner. close();

Input format

Outpl.ll format

Rel• to the 10 plEi mo ig pv.:. licollona

Code cona1101n 11

8¥¥11#1
FIii ygur Codi hltl

l t You ,,.. ualnt ,v,,.,,.,


2 1lic,_aalary, int( input())
Single File Programming Question > bob_11l1ry•flQat( lnput())
• , · •• ("Ini t ial ulariu:")
\ " , , · ( f"Alice ' s s alary ■ {alic1_ulary}")
f!QW!!!.I' (, ; ·, · t (f "Bob' s
salary = { bob_ulary }")
, alice_sllary , bob_salarydxib_ulary,1lic1_ui.ry
A E print ( "\nNe,. salaries after s..appinc: ")
9 prin~ (f"Alice's salary= {alica_ulary}")
10 print (f"Bob's salary= {bob_~Ulry}")

:t

Input formal

t <J A

00

Output format

You might also like