Learn C Language Online
12/05/2021
Whatsapp : https://wa.me/918128166631
06/11/2017
uname Admin
password 112285
void main()
{
char username[10];
int pass;
printf("Enter Username : ");
scanf("%s",username);
printf("\nEnter Password");
scanf("%d",&pass);
if(username!=uname)
printf("\nUsername is wrong");
else if (pass!=password)
printf("\nWrong Password");
else
printf("Login Successfully");
getch();
}
Updated version of 'C Solutions' coming soon...
With tutorials
And more than 100 new programming excersis...
QUESTION:
------------
Given the radius of a circle, write a program to compute and display its area.
Use a symbolic constant to define the p value and assume a suitable value for
radius.
CODDING:
----------
PIE 3.14
void main()
{
clrscr();
float Rad,Area;Rad=4;
Area=PIE*Rad*Rad;
printf("Area of a circle is--> %f",Area);
getch();
}
OUTPUT:
-----------
Area of a circle is 50.240002
Click here to claim your Sponsored Listing.
Category
Contact the business
Telephone
Address
Surat
395010