In every c++ program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

In every c++ program

there must be a function named mani there must be at least two declare variable variables names should be either x or y each variable must have its date type

14th Jul 2017, 1:07 PM
jaimin chauhan
jaimin chauhan - avatar
3 Answers
+ 5
first thing its main not "Mani"; second its data type not "Date Type"; And yeah whatever you said is not necessary cause a simple program that just outputs Hello world does not require any variable declaration and yeah the permutation to chose a variable is in billions so that's not necessarily x or y . But I can't understand what are you trying to say through this .
14th Jul 2017, 4:03 PM
RZK 022
RZK 022 - avatar
+ 4
The answer is there must be a function named main each variable must have its data type
14th Jul 2017, 1:14 PM
Mohit Gupta
Mohit Gupta - avatar
0
Please type in a code to print to the screen the value of x divided by y.
8th Apr 2019, 2:15 PM
Saul Barboza
Saul Barboza - avatar