Check out this program and Enjoy #include<stdio.h> #include<conio.h> void main(){ int a,x; printf(“enter the number”); scanf(“%d”,&a); x=a*a; printf(“the square is %d”,x); }
Programming
You can find all the Posts related to Programming in this Category
Write a Program to check whether the number is positive or not in C Programming
Hello, What’s Going on? You guys know that i am regularly uploading the Programs related to c Program to help you all in C. So, if you wanna learn more about CÂ Click here Okay, have a look on the code //write a program to check whether the number is positive. #include<stdio.h> void main(){ int number; …
Write a program to display the order menu and let the user choose any option in C Programming
Before you go you need to be familiar with Switch Case Statement. Anyway let’s check the code //WAP TO Display the menu and let the user choose their choice #include<stdio.h> void main(){ int order; printf(“Please choose what you want \n 1 for Veg MoMo \n 2 for Buff MoMo \n 3 for Chaumin \n 4 …
Write a program to check whether the number is Odd or Even in C
Hello there, here i am again back with the another program. I hope you guys are enjoying my Blog and the contents let’s check the program [gistpen id=”340″]
Write a Program to display Name, age and salary of a person in C Programming
Have a look and try it Yourself!! #include <stdio.h> int main(){ char name[20]; int age; float salary; printf(“Enter your name: “); gets(name); printf(“Enter your age: “); scanf(“%d”,&age); printf(“Enter your salary: “); scanf(“%f”,&salary); printf(“Name: ” ); puts(name); printf(“\n Age: %d”,age); printf(“\n Salary: %.2f”,salary); }