answersLogoWhite

0

You will have to use "printf" when you want to print two slashes one after another in c.

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Engineering

How do you display two right triangles in java?

two right triangles


How do you create a calculator on qbasic?

I was able to create a login program in qbasic with this simple code: cls 1 input "Username: " , username$ if username$ <> "Define what you want your name to be here (use the quotes)" then goto 1 else input "Password: " , password$ if password$ <> "Again define using quotes" then goto 1 else print "You have successfully logged in!" Hope this helps! === I would have rewritten the above code...-without using outdated line numbers/being combined together with goto statements-...as being the following... '*** set username/password... userName$="abc" passWord$="123" '*** get username/password DO CLS PRINT "Log in..." PRINT INPUT "Username: ", guessUserName$ INPUT "Password: ", guessPassWord$ LOOP UNTIL guessUserName$=userName$ AND guessPassWord$=passWord$ '*** print welcome screen... CLS PRINT TIME$ + " " + DATE$ PRINT PRINT "Congratulations, "; userName$; ", you have successfully logged in!"


What is another word for resilient?

another word or two for resilient: elastic; flexible; springy; quick to recover


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


How do you add 2 numbers in QBASIC?

I'm not too sure that I understand exactly what you mean by 'add a square'...?! Thus, I will attempt to answer the question using multiple different ways; hoping that, least, 'one' of these answers might be right... ==> CLS PRINT "PROGRAM: Twelve Times Tables Number Square" PRINT FOR intTimes% = 1 TO 12 FOR intTables% = 1 TO 12 sum% = intTimes% * intTables% noOfSpaces% = 0 IF LEN(STR$(sum%)) = 2 THEN noOfSpaces% = 2 IF LEN(STR$(sum%)) = 3 THEN noOfSpaces% = 1 PRINT sum%; SPC(noOfSpaces%); NEXT PRINT NEXT END <== ...QBASIC Code/End.

Related Questions

What role do two slashes play in music notation?

Two slashes in music notation indicate a repeat of the previous section of music.


How many slashes fo inches one or two?

Two. One is fo feet.


What car logo has two red lines that look like slashes?

Dodge


What are the two elements that are always in a web address?

2 forward slashes and http, i think


What are two advantages of using print preveiw?

Well, the most important advantage of using "Print Preview" is that you can see what you are about to print before you print it. Another thing, is that sometimes (depending on browsers, plug-ins, etc.), you can edit what you are going to print before you print it. You can see one page at a time, or put all the pages up at the same time.


In excel 2007 is there a formula to print the last two digits of a five digit number into another cell?

In cell A1 enter [12345].In cell B1 enter [=RIGHT(A1,2)].Observe in cell B1 the result [45].


Can two shep have the same nose print?

can two sheep have the same nose print


What do slashes mean in sex linked traits?

In sex-linked traits, slashes are used to designate the sex of an individual and the genotype for a specific trait. For example, in females with two X chromosomes and a recessive allele for a trait, the genotype would be represented as X^bX^b (affected) or X^BX^b (carrier). In males, the genotype is represented with just one X chromosome, as in X^bY (affected) or X^BY (unaffected).


What is Slash's solo band name?

he has two one before guitar hero and one after Slashes Snakepit and Slash


How we can write the algorithim of sum of two language?

Get the input of two numbers from the user.a,bAdd those two numbers and store the value in another variable.c=a+b;print the value c


Can two right angles be adjacent to each other?

Yes, two right angles can be adjacent to one another. In the letter "T", it's formed by two adjacent right angles.


What is LL Congruence Theorem?

LL Congruence theorem says: If the two legs of one right triangle are congruent to the two legs of another right triangle, then the two right triangles are congruent.