Q&A Discussões
#include <iostream>
using namespace std;
int calc(int &a,int &b,int c=6)
{
a+=b;
b-=c;
c=a+b;
}
int main()
{
int calc(int,int,int);
int x=2,y=3,z=4; cout<<x<<endl<<y<<endl<<z<<endl;
calc(x,y,z); cout<<x<<endl<<y<<endl<<z<<endl;
calc(5,6,z); cout<<x<<endl<<y<<endl<<z<<endl;
return 0;
}
1 Voto
5 RespostasNamespaces in C++
1 Voto
1 Respostausing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
int age = Convert.ToInt32(Console.ReadLine());
int broAge = Convert.ToInt32(Console .Readline());
Console.WriteLine("You are {0} years old", "your bro is {1}", age, broAge );
}
}
}
-1 Voto
8 RespostasQuente hoje
Activities on sololearn
4 Votes
Html issue
2 Votes
Can you help me ?
1 Votes
How I can use div
1 Votes
TIPS From Veterans
1 Votes
App development 🔥☝️
1 Votes
Playground input
1 Votes
Computer architecture
1 Votes
What am I doing wring?
1 Votes