Professional Documents
Culture Documents
Opt1 FRESHER
Assignment topic : Variables and Data Types
ACADEMY
Assignment duration : 180 minutes
Bài 2: Add the correct data type for the following variables:
___ myNum = 1; (char, unsigned char, signed char, int, unsigned int, short, unsigned short, long,
unsigned long)
___ myNum1 = 10001; (int, unsigned int, short, unsigned short, long, unsigned long)
Bài 3: Tạo file Exercise.cpp: Viết chương trình in ra màn hình console tên, tuổi, điểm tổng kết (float,
double) của bản thân trên mỗi dòng riêng biệt.
#include<iostream>
#include <string>
using namespace std;
int main() {