printf: format string + value list
scanf: format string + address list
#include<stdio.h> void main() { float a, b, result = 0.0; int choice; print f("Choose 1 for addition choose 2 for subtraction & 3 for multiplication & 4 for division \n"); scan f("%d" &choice); print f("Enter Two Numbers "); scan f("%f, %f" &a, &b); switch(choice) { case 1: print f("The Result Is :" "%f" a + b); break; case 2: print f("The Result Is :" "%f" a - b); break; case 3: print f("The Result Is :" "%f" a * b); break; case 4: print f("The Result Is :" "%f" a / b); break; default: print f("Wrong Choice"); } }
Not unless you print out what you scan
# include # include { float centi;farha; clrscr( ); print f ("Enter the temp); scan f ("%f"&centi); farha(a*centi)3/5; print f("farhanhite=%2f"farhan); getch( ); }
# include<stdio.h> main() { int a,b,c; print f("enter the values of a,b,c"); scan f("%d%d%d",&a,&b,&c); if((a>b)&&(a>c)) print f("Greatest value is a =%d",a); else if((b>a)&&(b>c)) print f("Greatest value is b=%d",b); else print f("Greatest value is c=%d",c); }
#include<stdio.h> main() { int a; print f("enter your amount "); scan f("%d",&a); }
Make a print of the zdl file. Scan the print with Photoshop or any program that can scan. Save this scan as jpg file
It is 'scanf', see the help.
Scan & print.
Print and Fax is a term used for a machine that can both print and fax. There is also scan and copy that is also used in the same way - some machines are print / scan, others are fax / copy, other machines are print / fax / scan/ copy. Printing is putting ink on a page from a computer file. Fax (or fascimile) is sending a document electronically from one fax machine to another.
#include<stio.h> #include<conio.h> voide main[] { int age; chrs[]print f ["enter the age \ n"]; scan f ["%d",&age]; if ["age>=18]; prient f ["person is elegiable to vote \ n"]
#include<stdio.h> int main() { int side,area of square; print f("Enter the length of side\n"); scan f("%d",&side); area of square=side*side; print f(the area of square is %d\n"area of square); return 0; }
The midrange Brother multipurpose printers can copy, print, scan and fax, all for roughly $100, which is a very fair price.