Answer Posted / nona
int n1, n2, sum;
Console.WriteLine("plz type the 1st number");
n1 = int .Parse (Console .ReadLine ());
Console.WriteLine("plz type the 2nd number");
n2 = int .Parse (Console .ReadLine ());
sum = n1 + n2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are local static variables? How can you use them?
Are bit fields portable?
What is sizeof array in c?
Why c is procedure oriented?
what is the different bitween abap and abap-hr?
What is the auto keyword good for?
Tell me with an example the self-referential structure?
Explain high-order bytes.
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
How can a program be made to print the line number where an error occurs?
Differentiate between #include<...> and #include '...'
What are the properties of union in c?
What do you mean by dynamic memory allocation in c?
Explain union. What are its advantages?
what does static variable mean?