Pascal: Mã: begin string coly,lantan; written("Vo ban gian co ly hay khong?"); readln(coly); if (gian = "co") begin written("Co lan toi hay khong"); readln(lantan); if (lantan = "co") written("Tang dau phu no luon chu con gi nua") else written("Thoi lam lanh); end else written("Cho ra lan can luon"); end. Borland C Mã: #include <stdio.h> #include <stdlib.h> int main(void) { string coly,lantan; printf("Vo ban gian co ly hay khong?"); scanf("%s",coly); if (gian == "co") { printf("Co lan toi hay khong"); scanf("%s",lantan); if (lantan = "co") printf("Tang dau phu no luon chu con gi nua"); else printf("Thoi lam lanh"); } else printf("Cho ra lan can luon"); } C++ Mã: #include <stdio.h> #include <stdlib.h> #include <iostream.h> int main(void) { string coly,lantan; cout << "Vo ban gian co ly hay khong?"; cin >> coly; if (gian == "co") { cout << "Co lan toi hay khong"; cin >> lantan; if (lantan = "co") cout << "Tang dau phu no luon chu con gi nua"; else cout << "Thoi lam lanh"; } else cout << "Cho ra lan can luon"; } C# Mã: #using System; namespace Woman { class Program { static void Main(string[] args) { string coly,lantan; System.Write("Vo ban gian co ly hay khong?"); coly = System.Readline(); if (gian == "co") { System.Write("Co lan toi hay khong"); lantan = System.Readline(); if (lantan = "co") System.Write("Tang dau phu no luon chu con gi nua"); else System.Write("Thoi lam lanh"); } else System.Write("Cho ra lan can luon"); } } } Java Mã: import java.io.*; import java.util.*; public class MainClass { public static void main(String[] args) { string coly,lantan; InputStreamReader isr=New InputStreamReader(System.in); BufferedReader bs=new BufferedReader(isr); System.out.print("Vo ban gian co ly hay khong?"); coly = bs.Readline(); if (gian.equals("co")) { System.out.print ("Co lan toi hay khong"); lantan = bs.Readline(); if (lantan.equals("co")) { System.out.Write("Tang dau phu no luon chu con gi nua"); else System.out.Write("Thoi lam lanh"); } else System.out.Write("Cho ra lan can luon"); } } Bác nào còn biết cái gì nữa bổ sung nốt vào đi