Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

4 CODING QUESTION WITH ANSWER, Study notes of Computer Programming

1] Write a Program to Convert Km to Mt 2] Write a Program to Convert Kg to Gm 3] Write a Program to Swap Two Numbers 4] Write a Program to Swap Two Numbers Without Using Third Variable

Typology: Study notes

2024/2025

Available from 05/10/2025

take-danger
take-danger 🇮🇳

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf2

Partial preview of the text

Download 4 CODING QUESTION WITH ANSWER and more Study notes Computer Programming in PDF only on Docsity!

> ese Convert em . } bon NZ . oe ae Enter . ted! veuade 60% i aq | . int. | pees . a pantt (1 Enken al! S| oie ON ay og, Se AN mm = en 1000 | : A me fe Bl printf (Distance én meson ts Sef Pe gM Ye ‘ aeich (Yj . = [3 e | | i = Q-linre @ program fo fony est Kg to Gua a Kg = 1060 gr) P| —> [2 iNelude < Siig h> Iz? yocluds < Como:h> ; i [void moinC) oh fe a | float arm ba 5 i > ene ae ter Coe te by thek ) Ca Hed dk : | _ . a= Tae . ‘ ES =. mot TH eg ng, — {S ' 200 == | Sa a a 5 3 bowte a programto0 Swap Nairn be ws, —— 5) # vous. ad SE: Indude < toma: h> maof ("a~ xd § rath: be a-b 5 Sd O6)5 Oj p- ! ays Ge Po | Word mein CS A=16 2o If a= Ve. b210 | clyscx C)j | Mnt A= 10, b= 20 temp 4 2 “ BOE ("qty d, heh q gy. C= deme t—_Q= I Wreite a Progam 10 Swap 2 numbers tothe ge tH ace | orem COE tet aes to cS ithe log bis Vastlab tl at bade : aae < Conio- hy ' Vv in ¢ morn Cc) = 16 Ce | s d= 20 “oto —— passant b= 26; —— | LL = ee 4 |