Using CodeWarrior write a program to display 2017 0121 and 1

Using CodeWarrior, write a program to display 2017, 0121, and 14:56 sequentially. Each number will be displayed for at least 3 seconds.

Solution

Answer:

#include<iostream.h>

#include<conio.h>

#include<dos.h>

void main()

{

clrscr();

int a=2017;

char b[5]=\"0121\",c[7]=\"14:56\";

cout<<a;

delay(3000);

clrscr();

cout<<b;

delay(3000);

clrscr();

cout<<c;

delay(3000);

clrscr();

getch();

}

Using CodeWarrior, write a program to display 2017, 0121, and 14:56 sequentially. Each number will be displayed for at least 3 seconds.SolutionAnswer: #include&

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site