Pls check idrea again | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Pls check idrea again

Can i enter a new intreger inside if? Example : Int main() { Int a,b,c ; Cin >> a ; If (a==0) { Int d; } Is this correct?

19th Jul 2020, 3:10 PM
UG.2
UG.2 - avatar
3 Réponses
+ 1
Apart from the auto-capitalization typos, and missing curly bracket for main function block, I think the code can run. You may get some unused variable warning though ...
19th Jul 2020, 3:20 PM
Ipang
+ 1
~ swim ~ Okkk and thx for the tip :D
19th Jul 2020, 3:32 PM
UG.2
UG.2 - avatar
0
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 Well cuz i may find some other useful things if ppl answered me
19th Jul 2020, 3:18 PM
UG.2
UG.2 - avatar