Programming in Dos

Hi friends it is very amazing to think for programmming is dos basically it is an Operating System

It is possible .


A simple addition programming in DOS
@Echo Off
set /p s="Enter the n"
set /p t="Enter the n"
set /a z=%s%+%t%
Echo %z%
pause



Lets us compare this program with normal C Program
@Echo OFF  =  clrscr();

Set /p  s   =     scanf(  )
set /a = is for calculation
Echo = printf
Pause  = getch( )

 This is all about program


Comments

  1. mast ha bahiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
    buat accha ha..............

    ReplyDelete

Post a Comment

Popular posts from this blog

How to set background color of navigation bar in iPhone

Checking Device Info in ios

Some Interactive tips to take input form GUI Dialogs