Sesiones de PyR
What is the use of the {
-1 Voto
3 Respuestas#include <iostream>
using namespace std;
class employee
int main()
{
private:
double salary;
public:
void getsalary(double sal)
{
salary=sal;
}
void display()
{
cout<<"the salary:"<<salary;
}
};
void main ()
{
employee programmer;
employee manager;
manager.getsalary (60000.0);
programmer.getsalary(40000.0);
manager.display();
programmer.display();
return 0;
}
1 Voto
5 Respuestasusing 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
7 RespuestasEn tendencia hoy
Guys help please
1 Votes
Python question
2 Votes
Are websites hackable?
1 Votes
Python
1 Votes
TICTACTOE
0 Votes
C# and sql
1 Votes
Error
0 Votes
What course to take for AI?
0 Votes
Learn python
0 Votes