C
Programming and Technical
Programming
Program
1. Print a square using ‘*’(star) symbols. Input is the number of stars per side of the square. For example if I give 4 as input then output should be
****
* *
* *
****
Read Solution (Total 10)
-
- #include
int main()
{
int i,j,n;
printf("enter size of sqauren");
scanf("%d",&n);
for(i=0;i - 9 years agoHelpfull: Yes(31) No(12)
- I am writing the pseudo code:
for(j=0;j - 9 years agoHelpfull: Yes(3) No(7)
- #include
int main()
{
int side=4,i=0,j=0,space;
for(i;i - 9 years agoHelpfull: Yes(3) No(4)
- #include
#include
int main()
{
int n,i,j;
printf("enter size");
scanf("%d",&n);
for(i=0;i - 8 years agoHelpfull: Yes(1) No(1)
- import java.io.*;
class Star{
public static void main(String[] args)throws IOException{
BufferedReader no=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a Number");
int Num=Integer.parseInt(no.readLine());
for(int i=0;i - 9 years agoHelpfull: Yes(0) No(4)
- // print square of ( * )
// Author - Navneet Kumar
#include
int main() {
int r,c;
for(r=1;r - 9 years agoHelpfull: Yes(0) No(3)
- #include
int main()
{
int num,i,j;
printf("Please enter a number to print the hollow star formation n");
scanf("%d", &num);
for(i=0;i - 8 years agoHelpfull: Yes(0) No(1)
- #include
#include
int main()
{
int i,j,n;
printf("enter the size of elements");
scanf("%d",&n);
for(i=1;i - 8 years agoHelpfull: Yes(0) No(3)
- #include
void main()
{ int i,j,n;
printf(“enter the no of rowsn”);
scanf(“%d”,&n);
for(i=0;i - 8 years agoHelpfull: Yes(0) No(2)
- i think * *
- 8 years agoHelpfull: Yes(0) No(2)
C Other Question