0% found this document useful (0 votes)
46 views2 pages

Koding Visual Studio Registrasi Akun Simple

This document contains code for a C# console application that allows a user to register an account by entering a username and password. It then prompts the user to log in with their credentials. If the login is successful, it displays a welcome message and prompts the user to enter values to simulate a library return/check-in system over multiple weeks and days, outputting the return details. The code contains nested for loops to iterate through the entered weeks, days, and returns to display the output.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views2 pages

Koding Visual Studio Registrasi Akun Simple

This document contains code for a C# console application that allows a user to register an account by entering a username and password. It then prompts the user to log in with their credentials. If the login is successful, it displays a welcome message and prompts the user to enter values to simulate a library return/check-in system over multiple weeks and days, outputting the return details. The code contains nested for loops to iterate through the entered weeks, days, and returns to display the output.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication8
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("REGISTRASI AKUN");
string p;
Console.Write("Masukkan Username Anda : ");
string user = Console.ReadLine();
Console.Write("Masukkan Username Anda : ");
string pass = Console.ReadLine();
do
{
Console.WriteLine("\nSilahkan Login");
Console.WriteLine("Pengguna : "+user);
Console.Write("Masukkan pasword anda : ");
p = (Console.ReadLine());
}
while (p !=pass);
{
Console.WriteLine("\n>>>>>selamat datang di perpustakaan<<<<<");
Console.Write("Masukkan Banyak minggu : ");
int a = Convert.ToInt32(Console.ReadLine());
Console.Write("Masukkan Banyak Hari : ");
int b = Convert.ToInt32(Console.ReadLine());
Console.Write("Masukkan Banyak Pengembalian : ");
int c = Convert.ToInt32(Console.ReadLine());
int om = 1;

for (int aa = a;aa>0;aa--)


{
int oh = 1;
Console.WriteLine("minggu ke-" + om);
om++;
for (int bb = b; bb > 0; bb--)
{
int op = 1;
Console.WriteLine(" Hari ke-" + oh);
oh++;
for (int cc = c; cc > 0; cc--)
{

Console.WriteLine(" Pengmbali ke-" + op);


Console.Write(" Nama : ");
string x = Console.ReadLine();
Console.Write(" judul : ");
string y = Console.ReadLine();
op++;
}
}
Consoale.WriteLine("");
}

}
Console.ReadKey();
}
}
}

You might also like