C Program To Create A House Using Graphics
C program to draw a house using Write a program in C to draw a hut and color it using graphics.h header file JOIN TELEGRAM
C program to draw a house using Write a program in C to draw a hut and color it using graphics.h header file JOIN TELEGRAM
Program to Compute Quotient and Remainder Output Enter dividend: 25 Enter divisor: 4 Quotient = 6 Remainder = 1 In this program, the user is asked to enter two integers (dividend and divisor). They are stored in variables dividend and divisor respectively. Then the quotient is evaluated using / (the division operator), and stored in quotient. Similarly, the remainder is evaluated using % (the…
In this example, you will learn how to find the ASCII value of a character. in C programming, a character variable holds ASCII value (an integer number between 0 and 127) rather than that character itself. This integer value is the ASCII code of the character. For example, the ASCII value of ‘A’ is 65. What this…
Program to Multiply Two Numbers Output In this program, the user is asked to enter two numbers which are stored in variables a and b respectively. Then, the product of a and b is evaluated and the result is stored in product. Finally, product is displayed on the screen using printf(). Notice that, the result is rounded off to the second decimal place using %.2lf conversion character.
Program to Add Two Integers Output Enter two integers: 12 11 12 + 11 = 23 In this program, the user is asked to enter two integers. These two integers are stored in variables number1 and number2 respectively. Then, these two numbers are added using the + operator, and the result is stored in the sum variable. Finally, the printf() function is used to display…
Program to Print an Integer Output Enter an integer: 25 You entered: 25 In this program, an integer variable number is declared. Then, the user is asked to enter an integer number. This number is stored in the number variable. Finally, the value stored in number is displayed on the screen using printf().
#include<stdio.h> #include<conio.h> void main(){ int i=1; while(i<=10); { printf(“\n My Name Is LNMCBM”); i=i+1; } getch(); } output :- LNMCBM LNMCBM LNMCBM LNMCBM LNMCBM LNMCBM LNMCBM LNMCBM LNMCBM LNMCBM
#include<stdio.h> #include<conio.h> void main(){ Printf(“My Name Is Tech “); getch(); }